Skip to content

Terraform state is not refreshed with new outputs value after apply #22607

@ghost

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

  1. Add output value to workspace's outputs, ran plan/apply
  2. 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.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions