Is it possible to have an alias for a folder in S3 bucket?
Here's what I'm trying to achieve: I want to host a website with documentation of various projects and upload documentation for new versions of these projects to folders in S3 bucket.
Bucket content would be something like this:
<projectA>
|---<0.1.0>
|---index.html
|---<0.2.0>
|---index.html
<projectB>
|---<1.0.0>
|---index.html
|---<1.1.0>
|---index.html
index.html
Now I'd like the newest version of any project to be aliased as 'latest'. So when I upload version 1.2.0 of projectB I remove alias 'latest' from version 1.1.0 and add the alias to newly uploaded '1.2.0'.
And url to index page of projectB/1.2.0 would be xxx.cloudfront.net/projectB/latest/index.html
Is something like that even possible? Maybe with some redirects in cloudfront? (or route53)