Skip to content

Commit b25f569

Browse files
committed
[NRL-1386] Fix glue source bucket lifecycle auto-deletes
1 parent 0e8116a commit b25f569

File tree

1 file changed

+5
-1
lines changed
  • terraform/account-wide-infrastructure/modules/glue

1 file changed

+5
-1
lines changed

terraform/account-wide-infrastructure/modules/glue/s3.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,16 @@ resource "aws_s3_bucket_lifecycle_configuration" "source-data-bucket-lifecycle"
5656

5757

5858
rule {
59-
id = "bucket-versioning-rule"
59+
id = "object-auto-delete-rule"
6060
status = "Enabled"
6161

6262
expiration {
6363
days = local.s3.expiration.days
6464
}
65+
66+
noncurrent_version_expiration {
67+
noncurrent_days = local.s3.expiration.days
68+
}
6569
}
6670
}
6771

0 commit comments

Comments
 (0)