-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Terraform state is not refreshed with new outputs value after apply #22607
Description
Terraform Version
0.12.7
Terraform Configuration Files
Terraform (I am using Terraform Cloud, so this might be limited only to that) doesn't see updates in outputs.tf. I am using 2 workspaces, referencing output with data source in the second one and if I push new commit to VCS adding additional output value, Terraform Cloud workspace reports that there are no changes and stops after plan. After the state doesn't refresh with new output value.
output "aws_region" {
value = "${var.aws_region}"
}Debug Output
Crash Output
Expected Behavior
State should refresh with new output value
Actual Behavior
Terraform (I am using Terraform Cloud, so this might be limited only to that) doesn't see updates in outputs.tf. I am using 2 workspaces, referencing output with data source in the second one and if I push new commit to VCS adding additional output value, Terraform Cloud workspace reports that there are no changes and stops after plan. After the state doesn't refresh with new output value.
Steps to Reproduce
- Add output value to workspace's outputs, ran plan/apply
- Reference that value with
data.terraform_remote_state.networking-dev.outputs.aws_region]from another workspace
Additional Context
Terraform Cloud environment.
I have to do any changes, even modify a tag to get new refreshed state.