Skip to content

Commit

Permalink
Block all public access on Cache Bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Jul 15, 2022
1 parent 4ae3639 commit 5be56ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sam/cloudfront/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ Resources:
Rules:
- Status: Enabled
ExpirationInDays: 1
PublicAccessBlockConfiguration:
BlockPublicAcls : true
BlockPublicPolicy : true
IgnorePublicAcls : true
RestrictPublicBuckets : true
CacheBucketPolicy:
Type: "AWS::S3::BucketPolicy"
Properties:
Expand Down

0 comments on commit 5be56ee

Please sign in to comment.