Skip to content

Commit 37251af

Browse files
committed
Fix - Adding S3 Bucket Public ACL Controls
1 parent c4605b6 commit 37251af

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

serverless.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,15 @@ resources:
6464
StaticAssets:
6565
Type: AWS::S3::Bucket
6666
Properties:
67-
AccessControl: PublicRead
6867
BucketName: ${self:provider.stage}-${self:service}-static-assets
68+
OwnershipControls:
69+
Rules:
70+
- ObjectOwnership: BucketOwnerPreferred
71+
PublicAccessBlockConfiguration:
72+
BlockPublicAcls: false
73+
BlockPublicPolicy: false
74+
IgnorePublicAcls: false
75+
RestrictPublicBuckets: false
6976

7077
StaticAssetsS3BucketPolicy:
7178
Type: AWS::S3::BucketPolicy

0 commit comments

Comments
 (0)