-
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
Terraform v1.10.0 breaks apply --auto-approve
when using list/dict variables
#36106
Comments
apply --auto-approve
apply --auto-approve
when using list/dict variables
Encountered this as well today making a lot of our pipelines bleed, had to resolve it by pinning the version to |
Also encountered. When i pinned the required_version to 1.9.8 it told me i couldn't do that as it did not conform to 1.10.0. Edit: the inline suggestion is to use |
This comment was marked as duplicate.
This comment was marked as duplicate.
Happening to me too. Very weird behavior as I was migrating variables from "Per-Step" defines to "Per-Job" defines. The variable (AZURE RBAC ADMIN LIST VAR) cannot be set using the -var and -var-file Terraform will perform the following actions: with Apply: Worked fine last week, and if you do what it suggests, you get... Error: Invalid use of ephemeral value Ephemeral values are not valid in resource arguments, because resource |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
I found this, if you're using a Github action calling hashicorp/setup-terraform@v3. To pin the version, configure it in the action's yaml. steps:
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.9.8" |
hello, happening to me too, looks like a bug as with a variable set
with no use in the code the error is also marked on the apply... |
I am hitting the same issue...error I am getting is Error: Can't change variable when applying a saved plan I ran the same pipeline few days ago and was perfectly fine and there have been no changes since. I tried pinning required_version to 1.9.8 and get the error Error: Unsupported Terraform Core version This configuration does not support Terraform version 1.10.0. To proceed, Is there any other workaround for this? |
Are you sure you pinned the version to 1.9.8 correctly? This error seems a bit off
|
Same here,
Pinning terraform version to |
Thanks for the reply... This is how I am pinning it terraform { |
I you encounter this, like me, this issue has been closed without a proper solution. It is a regression, downgrading the version is not a fix 🤷. |
Yes, that is what it means when an issue is closed by a PR. The next version (v1.10.1) should have the fix from #36121. Thanks! |
I've identified a fix for the issue. To resolve the issue, add the sensitive = true attribute to the affected variable.
|
Hi @aamitparmar, thanks. Although this may be an acceptable work-around (we have not tested it), the better option would be to upgrade to Terraform 1.10.1. Thanks! |
hi @crw we are using the |
Hi @FeiWangTyro, can you please open a new issue, following the new issue template, so we have the information necessary to triage and debug your report? Thanks very much! |
How did you pin terraform version using terragrunt @p24-max ? Having the same issue running I was using teragrunt version 0.48.4 when that started to happen. Using this action:
|
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
This should not fail.
Actual Behavior
Fails even though we are not using a saved plan!
Steps to Reproduce
terraform apply --auto-approve
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: