-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r/s3_bucket_lifecycle_configuration: Rule change generates MalformedXML #23884
Comments
Relates hashicorp/terraform-plugin-sdk#743 Noting here that there is a |
@anGie44 Given that the SDK issue you are referring to is almost 1 year old and has had no progress of any kind since it was opened, and appears to be related to hashicorp/terraform-plugin-sdk#477 which is almost 2 years old and still open, I would not expect a change in how |
I agree @Nuru 👍 To workaround the The linked PR has a test that attempts to replicate the update you've suggested, from filter {
and {
prefix = "prefix2"
object_size_greater_than = 131072
}
} to filter {
prefix = "prefix1"
} |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Linked Issue
This is a follow-up to #23883. In that issue, the
apply
fails with a provider error. This issue is what happens when that provider error does not get raised and theapply
is attempted.Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.1.6
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
main.tf (click to reveal)
The issue appears to be that when the new list of rules doesn't line up with the old list of rules, and a rule goes from having
to
the provider gets confused.
Debug Output
Note the Terraform plan output (hidden below, click to reveal) correctly indicates it is going to create a rule like this:
but the XML generated for the rule is
Hidden Terraform plan output
Terraform `plan` output (click to reveal)
Actual Behavior
On
terraform apply
Steps to Reproduce
terraform init
terraform apply -auto-approve
terraform apply -auto-approve -var trigger=true
Note: if step 3 triggers #23883 then run it again to produce this issue.
References
This complex setup of the
filter
configuration is made necessary by:This is the same configuration that triggers
The text was updated successfully, but these errors were encountered: