Changes to S3 Bucket Lifecycle policies don't converge (>v2.64.0) #14280
Labels
bug
Addresses a defect in current functionality.
service/s3
Issues and PRs that pertain to the s3 service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/dicconb/53fd9638f4c68923a2cb37b185187bd6
Expected Behavior
Actual Behavior
expiration
block that isn't visible in the planPlan:
Lifecycle rule:
expiration
block, and appears to succeedHowever the lifecycle rule is still present
Steps to Reproduce
terraform apply
terraform apply
terraform apply
Important Factoids
AbortIncompleteMultipartUpload
action (ie they don't have Expiration or Transition actions)https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config
AbortIncompleteMultipartUpload
action)Workaround:
The issue can be worked around by pinning to provider version
v2.64.0
or lower for the terraform apply which updates the lifecycle policy, or a subsequent terraform apply. The latest provider version can be used for any terraform runs that don't attempt to update S3 Lifecycle rules.References
The text was updated successfully, but these errors were encountered: