Skip to content

Commit 485cfa2

Browse files
authored
Add S3 bucket versioning and policy
1 parent 92c9b23 commit 485cfa2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

WINDOWS/AS2-Automation-Windows-CloudFormation.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ Resources:
7373
BlockPublicPolicy: true
7474
IgnorePublicAcls: true
7575
RestrictPublicBuckets: true
76+
VersioningConfiguration:
77+
Status: Enabled
78+
LifecycleConfiguration:
79+
Rules:
80+
- Id: "Delete previous versions"
81+
NoncurrentVersionExpiration:
82+
NewerNoncurrentVersions: 1
83+
NoncurrentDays: 14
84+
Status: Enabled
7685
LambdaFunctionLayer:
7786
Type: AWS::Lambda::LayerVersion
7887
Properties:

0 commit comments

Comments
 (0)