Skip to content

Commit

Permalink
Block public access to Artifact/AccessLogs Buckets (#977)
Browse files Browse the repository at this point in the history
* Block public access to Artifact/AccessLogs Buckets

---------

authored-by: Fbzioui
  • Loading branch information
fbzioui authored May 5, 2023
1 parent b907697 commit e615ac8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rpdk/core/data/managed-upload-infrastructure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ Resources:
LoggingConfiguration:
DestinationBucketName: !Ref AccessLogsBucket
LogFilePrefix: ArtifactBucket
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true

AccessLogsBucket:
Type: AWS::S3::Bucket
Expand All @@ -42,6 +47,11 @@ Resources:
ExpirationInDays: 3653
VersioningConfiguration:
Status: Enabled
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true

ArtifactCopyPolicy:
Type: AWS::S3::BucketPolicy
Expand Down

0 comments on commit e615ac8

Please sign in to comment.