Skip to content

Commit 5fffe67

Browse files
author
Avanish Tiwari
committed
Merge pull request #58 from cloudera/feature/Lifecycle_policy
1 parent 54b604a commit 5fffe67

File tree

2 files changed

+24
-0
lines changed
  • ClouderaSetup/OnCloud/AWS/build

2 files changed

+24
-0
lines changed

ClouderaSetup/OnCloud/AWS/build/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.1.1] - 2025-03-28
9+
10+
### Fixed
11+
12+
- Updated S3 lifecycle policy rules
13+
814
## [3.1.0] - 2025-03-26
915

1016
### Changed

ClouderaSetup/OnCloud/AWS/build/cdp-wrkshps-quickstarts/aws_enhancements/s3_enhancements/main.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,23 @@ resource "aws_s3_bucket_lifecycle_configuration" "log_lifecycle_policy" {
2929
expiration {
3030
days = 15
3131
}
32+
noncurrent_version_expiration {
33+
noncurrent_days = 15
34+
}
35+
36+
abort_incomplete_multipart_upload {
37+
days_after_initiation = 7
38+
}
39+
}
40+
# Rule 2: Remove expired delete markers (helps in bucket deletion)
41+
rule {
42+
id = "remove_expired_delete_markers"
43+
status = "Enabled"
44+
45+
filter {}
46+
47+
expiration {
48+
expired_object_delete_marker = true
49+
}
3250
}
3351
}

0 commit comments

Comments
 (0)