Closed chandini193 closed 3 weeks ago
Hey @chandini193 👋 Thank you for taking the time to raise this! So that we have all of the information in order to look into this, can you supply debug logs (redacted as necessary) as well?
Hello @justinretzolk, added debug logs. Please let me know if you need any further info.
Hello @justinretzolk, any updates on the issue.
Any solution or workarounds @justinretzolk ?
Hey @chandini193 👋 Thank you for checking in on this. Unfortunately, I'm not able to provide an estimate on when this will be looked into due to the potential of shifting priorities (we prioritize work by count of ":+1:" reactions, as well as a few other things). For more information on how we prioritize, check out out prioritization guide.
Any solution or workarounds @justinretzolk ?
Hi, we faced the same issue with a slightly different configuration and more rules. We managed to work this around by doing the following steps:
source_selection_criteria
block in aws_s3_bucket_replication_configuration
resource, and add ignore_changes = all
on aws_s3_bucket
resource, to avoid it failing on the next apply.terraform apply
.ignore_changes = all
from aws_s3_bucket
resource to let it fetch the changes and save them in the state.terraform apply
x2 (maybe it works also with just one run, haven't tried).source_selection_criteria
block in aws_s3_bucket_replication_configuration
resource.terraform apply
I'm not sure if this will work in your situation as well but I hope it could help.
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.0.7 AWS Provider 4.14.0
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
https://github.com/chandini193/debug-outputs/blob/main/tf-debug.log
Panic Output
Expected Behavior
There should not be an issue on subsequent terraform refresh since none of the replication configs changed.
Actual Behavior
First terraform apply was successful and the resources are created successfully. Post that on updating tags on the bucket failing with the following error:
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
The same implementation works as expected on AWS Provider 4.3.0.
References
0000