Setting up S3 bucket policy

I have two S3 buckets set up in my serverless config in the resources section. Now I want to make one of them publicly accessible (so the GetObject operation is available to anyone). How do I attach the bucket policy to the config?

1 Like

You can create BucketPolicy resources in the Resources section, and refer to your bucket by using the Ref: LogicalId CloudFormation syntax.


Thank you rowanu, that was exactly what I needed :slight_smile:

1 Like