Skip to content

Commit eee63e0

Browse files
authored
Add delete marker object expiration when s3 versioning is enabled (#318)
1 parent c6c7b98 commit eee63e0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## [7.10.16] - 2025-05-29
7+
### Changed
8+
- Add delete marker object expiration when s3 versioning is enabled.
9+
610
## [7.10.15] - 2025-05-23
711
### Changed
812
- Fix outputs when gluedb creation is disabled.

s3.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ resource "aws_s3_bucket_lifecycle_configuration" "apiary_data_bucket_versioning_
8686
noncurrent_days = tonumber(lookup(each.value, "s3_versioning_expiration_days", var.s3_versioning_expiration_days))
8787
}
8888
}
89+
# Rule s3 delete marker object expiration
90+
rule {
91+
id = "expire-delete-marker"
92+
status = lookup(each.value, "s3_versioning_enabled", "") != "" ? "Enabled" : "Disabled"
93+
94+
expiration {
95+
expired_object_delete_marker = "true"
96+
}
97+
}
8998
# Rule s3 intelligent tiering transition
9099
rule {
91100
id = "cost_optimization_transition"

0 commit comments

Comments
 (0)