AWS Amazon S3 on Outposts Bucket Lifecycle Configuration
This page shows how to write Terraform and CloudFormation for Amazon S3 on Outposts Bucket Lifecycle Configuration and write them securely.
aws_s3control_bucket_lifecycle_configuration (Terraform)
The Bucket Lifecycle Configuration in Amazon S3 on Outposts can be configured in Terraform with the resource name aws_s3control_bucket_lifecycle_configuration
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
bucket
required - string -
id
optional computed - string -
rule
set block-
id
required - string -
status
optional - string -
abort_incomplete_multipart_upload
list block-
days_after_initiation
required - number
-
-
expiration
list block-
date
optional - string -
days
optional - number -
expired_object_delete_marker
optional - bool
-
-
filter
list block
-
Explanation in Terraform Registry
Provides a resource to manage an S3 Control Bucket Lifecycle Configuration.
NOTE: Each S3 Control Bucket can only have one Lifecycle Configuration. Using multiple of this resource against the same S3 Control Bucket will result in perpetual differences each Terraform run. -> This functionality is for managing S3 on Outposts. To manage S3 Bucket Lifecycle Configurations in an AWS Partition, see the
aws_s3_bucket
resource.
AWS::S3Outposts::Bucket LifecycleConfiguration (CloudFormation)
The Bucket LifecycleConfiguration in S3Outposts can be configured in CloudFormation with the resource name AWS::S3Outposts::Bucket LifecycleConfiguration
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
Rules
The container for the lifecycle configuration rules for the objects stored in the S3 on Outposts bucket.
Required: Yes
Type: List of Rule
Update requires: No interruption
Explanation in CloudFormation Registry
The container for the lifecycle configuration for the objects stored in an S3 on Outposts bucket.