Skip to content

Commit

Permalink
feat(codepipeline): Cross region S3 buckets block public access by de…
Browse files Browse the repository at this point in the history
…fault.

The cross region S3 buckets that are created should have block public access by default.

fixes aws#16411
  • Loading branch information
david-richer-adsk authored Nov 25, 2021
1 parent 53620e9 commit 54df648
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class CrossRegionSupportConstruct extends Construct {
bucketName: cdk.PhysicalName.GENERATE_IF_NEEDED,
encryption: encryptionAlias ? s3.BucketEncryption.KMS : s3.BucketEncryption.KMS_MANAGED,
encryptionKey: encryptionAlias,
blockPublicAccess: new s3.BlockPublicAccess(s3.BlockPublicAccess.BLOCK_ALL)
});
}
}
Expand Down

0 comments on commit 54df648

Please sign in to comment.