Closed pkolyvas closed 4 years ago
Perhaps this change helps with your situation?
This does appear to be fixed by v0.15.1. I was able to reproduce the issue using 0.15.0, and then I tried it with v0.15.1 and it worked as expected.
Closing with the expectation that v0.15.1 resolves the issue.
I've discovered an issue where renaming a workspace, via a variable map, causes an error on
terraform apply
, that is fixed by running a secondapply
.Terraform Version
TFC via Terraform 0.12.20
Terraform Configuration Files
The TLDR of this config is that I'm provisioning/managing a TFC org and the associated workspaces, using
for_each
to populate the AWS creds for each workspace.Debug Output
I didn't catch one but it's repeatably so if I must, I will return with one. ;)
Crash Output
Expected Behavior
When I change the value of a mapped variable,
terraform apply
should not fail.Actual Behavior
terraform apply
fails the first time with the above error. A secondterraform apply
works and my resources are in their expected state [pun totally intended].Additional Context
If I were to change a
var.workspaces.value
from "My_Workspace" to "My_workspace" the workspace is renamed without issue during aterraform apply
.However, when I change a value of a
var.workspace.value
from "My_Workspace" to "Workspace_A" the two associated variables are not able to be destroyed and recreated on the firstterrafrom apply
. A secondterraform apply
is required.