Skip to content

Commit 2799b4d

Browse files
committed
Auto-delete s3://nextstrain-ncov-private/trial*
These are not meant for long-term storage. Plan: 0 to add, 1 to change, 0 to destroy.
1 parent ecb9a66 commit 2799b4d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

env/production/aws-s3-bucket-nextstrain-ncov-private.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,22 @@ resource "aws_s3_bucket_lifecycle_configuration" "nextstrain-ncov-private" {
7070

7171
status = "Enabled"
7272
}
73+
74+
rule {
75+
id = "Cleanup files under trial/"
76+
77+
filter {
78+
prefix = "trial/"
79+
}
80+
81+
expiration {
82+
days = 30
83+
}
84+
85+
noncurrent_version_expiration {
86+
noncurrent_days = 30
87+
}
88+
89+
status = "Enabled"
90+
}
7391
}

0 commit comments

Comments
 (0)