Create S3 folder alias or redirect url to S3 folder

Is it possible to have an alias for a folder in an S3 bucket?

Here's what I'm trying to achieve: I want to host a site with documentation for various projects and upload documentation for new versions of those projects to folders in the S3 bucket.

The contents of the bucket will 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 would like the new version of any project to be aliased as "latest". So when I download version 1.2.0 of projectB, I remove the "latest" alias from version 1.1.0 and add the alias to the recently downloaded "1.2.0".

And the url of the page projectB/1.2.0

would bexxx.cloudfront.net/projectB/latest/index.html

Is something like this possible? Maybe with some cloud redirects? (or route53)

+3


source to share





All Articles