Loading...
Loading...
### Terraform Version ```shell Terraform v1.10.0 on linux_amd64 ``` ### Terraform Configuration Files ```terraform variable "tfc_vault_backed_aws_dynamic_credentials" { description = "Object containing Vault-backed AWS dynamic credentials configuration" type = object({ default = object({ shared_credentials_file = string }) aliases = map(object({ shared_credentials_file = string })) }) } provider "aws" { shared_credentials_files = [var.tfc_vault_backed_aws_dynamic_credentials.aliases[""].shared_credentials_file] } provider "vault" { skip_child_token = true } ``` ### Debug Output ``` {"@level":"error","@message":"Error: Can't change variable when applying a saved plan","@module":"terraform.ui","@timestamp":"2024-11-27T11:02:58.014345Z","diagnostic":{"severity":"error","summary":"Can't change variable when applying a saved plan" ``` ### Expected Behavior Terraform applies the detected changes. Reverting the Terraform Cloud workspace to version `1.9.8` fixes this. ### Actual Behavior Terraform fails with the following error: ``` Error: Can't change variable when applying a saved plan The variable tfc_vault_backed_aws_dynamic_credentials cannot be set using the -var and -var-file options when applying a saved plan file, because a saved plan includes the variable values that were set when it was created. ``` ### Steps to Reproduce 1. Make sure workspace uses Terraform v1.10 (latest) 2. Click `New run` on Terraform cloud 3. Start new `Plan and apply (standard)` run ### Additional Context The `tfc_vault_backed_aws_dynamic_credentials` variable is passed via Terraform Cloud variable sets. ### References _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.