You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform will overwrite lifecycle_rules on aws_s3_bucket resources that nearly match rules with tags, but without the filter applied.
S3 bucket lifecycle rules (and the s3 api: http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html) now support rules based on tags. If you add a rule with tags to an existing bucket, or import a bucket with a rule with tags, terraform will remove the tags from the rule without notifying you of changes that will happen (in a plan) or that did happen (in an apply).
This issue was originally opened by @bdashrad as hashicorp/terraform#12830. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform will overwrite lifecycle_rules on aws_s3_bucket resources that nearly match rules with tags, but without the filter applied.
S3 bucket lifecycle rules (and the s3 api: http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html) now support rules based on tags. If you add a rule with tags to an existing bucket, or import a bucket with a rule with tags, terraform will remove the tags from the rule without notifying you of changes that will happen (in a plan) or that did happen (in an apply).
Terraform Version
terraform v0.8.8
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Terraform should show changes that will happen to lifecycle rules.
Actual Behavior
Terraform overwrote them without showing changes.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform import aws_s3_bucket.my_bucket files
terraform plan
|: you will see no changes to the lifecycle rules in the output.terraform apply
: you will see no changes to the lifecycle rules in the output.The text was updated successfully, but these errors were encountered: