Skip to content

Commit

Permalink
Merge pull request #33 from JBlack96/Fix-S3-Bucket-PublicACL
Browse files Browse the repository at this point in the history
[Fix] - Adding S3 Bucket Public ACL Controls
  • Loading branch information
yarbsemaj authored Jun 9, 2023
2 parents c4605b6 + 37251af commit 8c7eb37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,15 @@ resources:
StaticAssets:
Type: AWS::S3::Bucket
Properties:
AccessControl: PublicRead
BucketName: ${self:provider.stage}-${self:service}-static-assets
OwnershipControls:
Rules:
- ObjectOwnership: BucketOwnerPreferred
PublicAccessBlockConfiguration:
BlockPublicAcls: false
BlockPublicPolicy: false
IgnorePublicAcls: false
RestrictPublicBuckets: false

StaticAssetsS3BucketPolicy:
Type: AWS::S3::BucketPolicy
Expand Down

0 comments on commit 8c7eb37

Please sign in to comment.