The S3 bucket declaration for the Attachments bucket with a Policy for the referenced file and exercises onwards must include the attribute declaration to avoid a permission error upon creation.
Proposed solution
Add the PublicAccessBlockConfiguration object under the Properties section, as highlighted below.
Here is the complete resource declaration for reference
Summary
The
sls deploy
command fails due to a permission error on S3 Bucket resources.Path
lesson-3-events-processing/exercises/02-return-presigned-url-starter/backend/serverless.yml
File
serverless.yml
Explanation
The S3 bucket declaration for the Attachments bucket with a Policy for the referenced file and exercises onwards must include the attribute declaration to avoid a permission error upon creation.
Proposed solution
Add the
PublicAccessBlockConfiguration
object under theProperties
section, as highlighted below.Here is the complete resource declaration for reference