Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit cc3f381

Browse files
committed
Added Bucket Encryption
1 parent 2529469 commit cc3f381

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

templates/git2s3.template.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ Resources:
140140
Type: AWS::S3::Bucket
141141
Properties:
142142
Tags: []
143+
BucketEncryption:
144+
ServerSideEncryptionConfiguration:
145+
- ServerSideEncryptionByDefault:
146+
SSEAlgorithm: AES256
147+
PublicAccessBlockConfiguration:
148+
BlockPublicAcls: true
149+
BlockPublicPolicy: true
150+
IgnorePublicAcls: true
151+
RestrictPublicBuckets: true
143152
VersioningConfiguration:
144153
Status: Enabled
145154

@@ -263,6 +272,15 @@ Resources:
263272
Type: AWS::S3::Bucket
264273
Properties:
265274
Tags: []
275+
BucketEncryption:
276+
ServerSideEncryptionConfiguration:
277+
- ServerSideEncryptionByDefault:
278+
SSEAlgorithm: AES256
279+
PublicAccessBlockConfiguration:
280+
BlockPublicAcls: true
281+
BlockPublicPolicy: true
282+
IgnorePublicAcls: true
283+
RestrictPublicBuckets: true
266284
VersioningConfiguration:
267285
Status: Enabled
268286

@@ -273,6 +291,15 @@ Resources:
273291
- AutoGenOutputBucketName
274292
- !Ref 'OutputBucketName'
275293
- !Ref 'AWS::NoValue'
294+
BucketEncryption:
295+
ServerSideEncryptionConfiguration:
296+
- ServerSideEncryptionByDefault:
297+
SSEAlgorithm: AES256
298+
PublicAccessBlockConfiguration:
299+
BlockPublicAcls: true
300+
BlockPublicPolicy: true
301+
IgnorePublicAcls: true
302+
RestrictPublicBuckets: true
276303
VersioningConfiguration:
277304
Status: Enabled
278305
Tags: []

0 commit comments

Comments
 (0)