-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
[0.12] Taint of resource with count can't taint all items #21509
Comments
I too depended on this functionality for tainting all of my replica databases when I rebuilt the master. It is nice if the engineer doing this doesn't have to know how many replicas we have. Everything else is just copy/paste. |
it affects to me as well. |
it affects to me as well. I need to taint a for_each 's creations. |
This issue is absolutely still valid, however I am closing it to consolidate it as a duplicate of #1768. |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Before in 0.11 I could taint a resource with a count without having to know how many resources there was. Now when I do it need to use the new module reference syntax with [0] on the end to reference a single resource and can't use splat to get all.
Terraform Version
Terraform Configuration Files
Expected Behavior
As in terraform 0.11
terraform taint -module=my-volume aws_ebs_volume.volume
And all of my volumes with counts would be tainted
Actual Behavior
Now with the new calling syntax it doesn't allow me taint a group of resources with counts
terraform taint module.my-volume.aws_ebs_volume.volume
terraform taint module.my-volume.aws_ebs_volume.volume[0]
terraform taint module.my-volume.aws_ebs_volume.volume[*]
The text was updated successfully, but these errors were encountered: