Skip to content

Commit

Permalink
Add CHANGELOG note for new default minimum object size for S3 Lifecyc…
Browse files Browse the repository at this point in the history
…le transition rules.
  • Loading branch information
ewbankkit committed Oct 3, 2024
1 parent a649962 commit dc9f043
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .changelog/39578.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
```release-note:enhancement
resource/aws_s3_bucket_lifecycle_configuration: Add `transition_default_minimum_object_size` argument
```

```release-note:note
resource/aws_s3_bucket_lifecycle_configuration: Amazon S3 now applies a default minimum object size of 128 KB for S3 Lifecycle transition rules to any S3 storage class. This new default behavior will be applied to any new or modified S3 Lifecycle configuration. You can override this new default and customize the minimum object size for S3 Lifecycle transition rules to any value.
```
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ This resource supports the following arguments:
* `bucket` - (Required) Name of the source S3 bucket you want Amazon S3 to monitor.
* `expected_bucket_owner` - (Optional) Account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.
* `rule` - (Required) List of configuration blocks describing the rules managing the replication. [See below](#rule).
* `transition_default_minimum_object_size` - (Optional) Which default minimum object size behavior is applied to the lifecycle configuration. Valid values: `all_storage_classes_128K`, `varies_by_storage_class`. To customize the minimum object size for any transition you can add a `filter` that specifies a custom `object_size_greater_than` or `object_size_less_than` value. Custom filters always take precedence over the default transition behavior.
* `transition_default_minimum_object_size` - (Optional) The default minimum object size behavior applied to the lifecycle configuration. Valid values: `all_storage_classes_128K` (default), `varies_by_storage_class`. To customize the minimum object size for any transition you can add a `filter` that specifies a custom `object_size_greater_than` or `object_size_less_than` value. Custom filters always take precedence over the default transition behavior.

### rule

Expand Down Expand Up @@ -445,7 +445,7 @@ The `transition` configuration block supports the following arguments:

The `and` configuration block supports the following arguments:

* `object_size_greater_than` - (Optional) Minimum object size to which the rule applies. Value must be at least `0` if specified. Defaults to 128000.
* `object_size_greater_than` - (Optional) Minimum object size to which the rule applies. Value must be at least `0` if specified. Defaults to 128000 (128 KB) for all `storage_class` values unless `transition_default_minimum_object_size` specifies otherwise.
* `object_size_less_than` - (Optional) Maximum object size to which the rule applies. Value must be at least `1` if specified.
* `prefix` - (Optional) Prefix identifying one or more objects to which the rule applies.
* `tags` - (Optional) Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply.
Expand Down

0 comments on commit dc9f043

Please sign in to comment.