Create an S3 Bucket


#1

From @jayair on Mon Apr 10 2017 01:08:56 GMT+0000 (UTC)

Link to chapter - http://serverless-stack.com/chapters/create-an-s3-bucket.html

Copied from original issue: https://github.com/AnomalyInnovations/serverless-stack-com/issues/62


#2

When the bucket policy given in the book is applied, aws console displays a warning;

This bucket has public access
You have provided public access to this bucket. We highly recommend that you never grant any kind of public access to your S3 bucket.

Is this expected behavior? If so, what should one do instead?


#3

In this case, we want our S3 bucket (and the app inside it) to be publicly accessible. So it is safe to ignore this. However, we shouldn’t make our file uploads bucket publicly accessible.


#4

There are two new default settings in the boilerplate setup that prevent you from adding public policies to buckets, and, apparently, from allowing a bucket to be public while you “fix the policy.”

Or at least I had these come up, and was wondering why I was getting 403s on updating the policy. If you’re getting these, edit the “Public access settings,” and uncheck the options for “Manage public bucket policies for this bucket.”


#5

Thanks for sharing. Sounds like we need to update the screenshots.


#6

Yes, I had the same issue and found the same solution. This screenshot shows the two boxes that need to be unchecked:


#7

Got it. Yeah it needs to be updated.