Skip to content

Commit 70745cb

Browse files
committed
Add lifecycle rule to the test s3 bucket
1 parent 3ff7f8f commit 70745cb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

testing/deploy-cloudformation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ aws cloudformation deploy \
55
--template-file template.yaml \
66
--stack-name aws-data-wrangler-test-arena \
77
--capabilities CAPABILITY_IAM \
8-
--parameter-overrides "$(cat parameters.properties)"
8+
--parameter-overrides $(cat parameters.properties)

testing/template.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ Resources:
6666
BlockPublicPolicy: true
6767
IgnorePublicAcls: true
6868
RestrictPublicBuckets: true
69+
LifecycleConfiguration:
70+
Rules:
71+
- Id: CleaningUp
72+
Status: Enabled
73+
ExpirationInDays: 1
74+
AbortIncompleteMultipartUpload:
75+
DaysAfterInitiation: 1
76+
NoncurrentVersionExpirationInDays: 1
6977

7078
RedshiftRole:
7179
Type: AWS::IAM::Role

0 commit comments

Comments
 (0)