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?
You can create BucketPolicy resources in the Resources
section, and refer to your bucket by using the Ref: LogicalId
CloudFormation syntax.
2 Likes
Thank you rowanu, that was exactly what I needed
1 Like