I've setup an Amazon CloudFront
CDN to point to an Amazon S3 Bucket
. It works great, I love how it's streamlined much of my process!
But I have a problem, every time I do a new upload to it, the new files are permission restricted and I have to go through and manually make things public. What is worse is that it doesn't appear that making a top-level directory public fixes this, even when "re-applied" each time.
Is there some way I can tell Amazon S3 "Yes, keep this folder and everything in it public until I say otherwise"?
SmartFTP
, and I am setting permissions through the S3 Web Interface.public-read
./
. Some tools allow you to "create" a folder, which is just an empty object with a/
as the last character in its key (name), a placeholder so you can "select" the folder and upload files "in" it. To upload "foo.jpg" into folder "bar" the actual process behind the scenes is to upload a file named "bar/foo.jpg". The root of the bucket in S3 is empty string, not "/", which is why the object name wouldn't begin with "/" in this example.