Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Added Bucket Versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
troy-ameigh committed Sep 11, 2023
1 parent 3b65c7c commit b2b1440
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Resources:
- Fn::Split:
- /
- Ref: AWS::StackId
VersioningConfiguration:
Status: Enabled
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
Expand Down
2 changes: 2 additions & 0 deletions patterns/LambdaZips/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Resources:
LambdaZipsBucket:
Type: AWS::S3::Bucket
Properties:
VersioningConfiguration:
Status: Enabled
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
Expand Down
2 changes: 2 additions & 0 deletions patterns/blog/CircularDependency/LessSimpleNonWorking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Resources:
Bucket:
Type: AWS::S3::Bucket
Properties:
VersioningConfiguration:
Status: Enabled
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
Expand Down
2 changes: 2 additions & 0 deletions patterns/blog/CircularDependency/LessSimpleWorking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Resources:
Bucket:
Type: AWS::S3::Bucket
Properties:
VersioningConfiguration:
Status: Enabled
BucketName: !Sub "cderror-${AWS::AccountId}"
BucketEncryption:
ServerSideEncryptionConfiguration:
Expand Down
2 changes: 2 additions & 0 deletions samples/cloudformation-codebuild-container/codebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ Resources:
LambdaZipsBucket:
Type: AWS::S3::Bucket
Properties:
VersioningConfiguration:
Status: Enabled
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
Expand Down
2 changes: 2 additions & 0 deletions samples/cloudformation-cross-account/examples/bucket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Resources:
Tags:
- Key: cross-account
Value: !Ref Tag
VersioningConfiguration:
Status: Enabled
Outputs:
AccountId:
Value: !Ref AWS::AccountId
Expand Down
2 changes: 2 additions & 0 deletions samples/hugo-pipeline/templates/master.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Resources:
WebHostingBucket:
Type: 'AWS::S3::Bucket'
Properties:
VersioningConfiguration:
Status: Enabled
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
Expand Down
2 changes: 2 additions & 0 deletions templates/workload-yaml.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,8 @@ Resources:
S3Bucket:
Type: AWS::S3::Bucket
Properties:
VersioningConfiguration:
Status: Enabled
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
Expand Down

0 comments on commit b2b1440

Please sign in to comment.