You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform taint my.special.resource should respect the required_version in versions.tf and not proceed if there is a mismatch, similar to terraform apply.
Actual Behaviour
We have required_version = "0.13.2" set, but Terraform v0.13.3 happily tainted the state and set a new minimal version in the state.
Steps to Reproduce
Run terraform taint my.special.resource with v0.13.3 on a state file from v0.13.2.
Additional Context
We use Homebrew as a makeshift package manager due to inadequacies in macOS. It is easy to 'accidentally' upgrade packages with no easy way to roll back to an older version when the upgrade is discovered. Therefore we set a fixed Terraform version to prevent accidental upgrades of the state file.
Terraform was upgraded on my machine. terraform taint was able to taint my state file without issue. The subsequent terraform apply immediately failed because the Terraform version did not match the value in required_version. After downgrading, terraform apply failed again because the state file was set with a higher Terraform version.
References
The text was updated successfully, but these errors were encountered:
Thanks for reporting this, @stellirin! I've confirmed the bug exists on 0.13 and 0.14.
alisdair
added
confirmed
a Terraform Core team member has reproduced this issue
explained
a Terraform Core team member has described the root cause of this issue in code
and removed
new
new issue not yet triaged
confirmed
a Terraform Core team member has reproduced this issue
labels
Sep 22, 2020
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.
ghost
locked as resolved and limited conversation to collaborators
Oct 25, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugexplaineda Terraform Core team member has described the root cause of this issue in code
Terraform Version
Terraform Configuration Files
N/A
Debug Output
N/A
Crash Output
N/A
Expected Behaviour
terraform taint my.special.resource
should respect therequired_version
inversions.tf
and not proceed if there is a mismatch, similar toterraform apply
.Actual Behaviour
We have
required_version = "0.13.2"
set, but Terraform v0.13.3 happily tainted the state and set a new minimal version in the state.Steps to Reproduce
Run
terraform taint my.special.resource
with v0.13.3 on a state file from v0.13.2.Additional Context
We use Homebrew as a makeshift package manager due to inadequacies in macOS. It is easy to 'accidentally' upgrade packages with no easy way to roll back to an older version when the upgrade is discovered. Therefore we set a fixed Terraform version to prevent accidental upgrades of the state file.
Terraform was upgraded on my machine.
terraform taint
was able to taint my state file without issue. The subsequentterraform apply
immediately failed because the Terraform version did not match the value inrequired_version
. After downgrading,terraform apply
failed again because the state file was set with a higher Terraform version.References
The text was updated successfully, but these errors were encountered: