-
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
tainted resource not enforced on plan or apply for resources using count. v0.7 #8072
Comments
I think I'm seeing this as well; but count doesn't seem to matter either. I have a file generated by template that I dump to the filesystem, when I taint that resource it doesn't re-write the file. I then converted to the new I'm using the local state |
I ran into this issue as well. The workaround was to use As an asside, it would be nice to be able to taint |
Hi, That said I agree that Terraform should be returning some kind of error instead of
@elliottucker-swrve Would you mind re-trying the taint operation with the new address format and confirm that it works for you so we can confirm this is only caused by the syntax? |
OK I tried that syntax using zsh (not bash) and I get
and wrapped in quotes...
and in Bash:
So a bit better in bash in that I don't need quotes but not better in that it's not finding it. To verify this, using dot notation...
And running plan, same problem. No changes identified. |
Thanks for the reports! This is fixed in #8167 which will come out with v0.7.1 due out next week. 👍 |
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. |
Terraform Version
Terraform v0.7.0
OSX 10.11.6
installed via homebrew
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I am running the command:
terraform taint aws_instance.web.0
This returns:
When I run plan and apply, i'd expect the instance to be destroyed and recreated.
Actual Behavior
When I run plan and apply:
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform taint aws_instance.web.0
terraform plan
terraform apply
Important Factoids
Using s3 remote state
terraform remote config -backend s3 -backend-config="bucket=mybucket" -backend-config="key=terraform/stackname" -backend-config="region=us-east-1"
Running
terraform show
shows the resource as taintedThe text was updated successfully, but these errors were encountered: