Skip to content

Commit

Permalink
Added abort_incomplete_multipart_upload rule into S3 lifecycle object (
Browse files Browse the repository at this point in the history
  • Loading branch information
javsanbel2 authored Feb 26, 2025
1 parent e62a45b commit bc4cdd6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

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).

## [7.9.4] - 2025-02-26
### Fixed
- Added `abort_incomplete_multipart_upload` rule into `aws_s3_bucket_lifecycle_configuration` object.

## [7.9.3] - 2025-02-25
### Fixed
- Merged all S3 lifecycle configurations into `aws_s3_bucket_lifecycle_configuration` object.
Expand Down
9 changes: 9 additions & 0 deletions s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ resource "aws_s3_bucket_lifecycle_configuration" "apiary_data_bucket_versioning_
for schema in local.schemas_info : "${schema["schema_name"]}" => schema
}
bucket = each.value["data_bucket"]
# Rule for s3 incomplete multipart upload expiration
rule {
id = "expire-incomplete-multipart-uploads"
status = "Enabled"

abort_incomplete_multipart_upload {
days_after_initiation = var.s3_lifecycle_abort_incomplete_multipart_upload_days
}
}
# Rule for s3 versioning expiration
rule {
id = "expire-noncurrent-versions-days"
Expand Down

0 comments on commit bc4cdd6

Please sign in to comment.