Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default AES256 encryption and enable versioning for buckets in audit-logs, release-pipeline, and staging-bucket stacks #3673

Merged
merged 1 commit into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions build-infrastructure/audit-logs-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ Resources:
Type: AWS::S3::BucketPolicy
Properties:
Bucket: !Sub 'audit-logs-bucket-${AWS::AccountId}'
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
VersioningConfiguration:
Status: Enabled
PolicyDocument:
Version: 2012-10-17
Statement:
Expand Down
6 changes: 6 additions & 0 deletions build-infrastructure/release-pipeline-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ Resources:
Type: AWS::S3::Bucket
Properties:
BucketName: !Sub 'codepipeline-${AWS::Region}-${AWS::AccountId}-artifacts'
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
VersioningConfiguration:
Status: Enabled
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
Expand Down
6 changes: 6 additions & 0 deletions build-infrastructure/staging-bucket-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Resources:
Type: AWS::S3::Bucket
Properties:
BucketName: !Sub '${StagingBucketNamePrefix}-${AWS::Region}-${AWS::AccountId}'
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
VersioningConfiguration:
Status: Enabled

StagingArtifactsBucketPolicy:
Type: AWS::S3::BucketPolicy
Expand Down