Skip to content

Commit 1aa4360

Browse files
committed
fix: Enable S3 public access blocks in CFn
The SemiStructuredDocumentsS3Bucket created in the CFn/SAM template does not need to be accessed from outside AWS, so should enable S3 public access blocks as a best practice.
1 parent e331d96 commit 1aa4360

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

comprehend-semi-structured-documents-annotation-template.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ Resources:
5353
- AllowedHeaders: []
5454
AllowedMethods: [GET]
5555
AllowedOrigins: ['*']
56+
PublicAccessBlockConfiguration:
57+
BlockPublicAcls: true
58+
BlockPublicPolicy: true
59+
IgnorePublicAcls: true
60+
RestrictPublicBuckets: true
5661

5762
SemiStructuredDocumentsS3BucketPolicy:
5863
Type: AWS::S3::BucketPolicy

0 commit comments

Comments
 (0)