-
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
aws_backup_selection continuously re-creating #22595
Comments
Seeing the same, the condition block is not defined in my config but it always forces replacement.
|
Hey @devonbleak 👋 Thank you for taking the time to raise this. So that we have all of the information we need in order to look into this, can you update the issue description to include debug logs as well? |
Probably caused by #22074 |
I'm not sure that this can be considered as a bug, |
I can confirm that after addind empty "condition" variable resource stopped recreating. Thanks! |
If this is not a bug, then the documentation is not correct as these fields now seem to be required. terraform-provider-aws/internal/service/backup/selection.go Lines 48 to 52 in 0c9bcee
Defining an empty block for these fields seems like a workaround for a bug rather than a missing piece of configuration, and is probably not good practice. |
I'm having the same issue.
But unlike what's been said earlier, I can't seem to patch it quiet with empty values... 😒 To get it to pass, I added a dummy condition:
|
I am adding this lifecycle policy , as a workaround. It works for me.
|
I'm having the same issue and it's very confusing because it appears every time you ran |
We'll need to make |
I applied this same fix as well with terraform 0.13.5 and it worked for the first time. Then rerunning later it started to fail, complaining about "This object has no argument, nested block, or exported attribute named |
Adding condition {} with TF 1.0.2 and aws-provider 3.73.0 worked for me. |
Adding condition {} with TF 0.13.5 and aws-provider 3.23 didn't work for me. It said: |
@frankfong0208 You'll need to use aws-provider version >3.72.0. |
For me it works with:
|
tangentially related Terraform is still reporting the derived value aws_backup_vault : recovery_points changes as "Objects have changed outside of Terraform" |
This functionality has been released in v4.0.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
$ terraform -v
Terraform v0.13.5
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
Panic Output
Expected Behavior
No change to this resource after apply if there are no changes to the code
Actual Behavior
Terraform re-creates the resource on every plan
Steps to Reproduce
terraform plan
terraform apply
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: