Skip to content

Commit 98a8f13

Browse files
committed
abort incomplete multipart uploads
1 parent 9810de2 commit 98a8f13

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

terraform/modules/archival/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ resource "aws_s3_bucket_versioning" "this" {
2929
resource "aws_s3_bucket_lifecycle_configuration" "this" {
3030
bucket = aws_s3_bucket.this.id
3131

32+
rule {
33+
id = "AbortIncompleteMultipartUploads"
34+
status = "Enabled"
35+
36+
abort_incomplete_multipart_upload {
37+
days_after_initiation = 1
38+
}
39+
}
40+
3241
rule {
3342
id = "intelligent-tiering-transition"
3443
status = "Enabled"

0 commit comments

Comments
 (0)