Loading...
Loading...
### Terraform Version ```shell Terraform v1.9.4 on linux_amd64 ``` ### Terraform Configuration Files ```terraform variable "test" { type = string } output "test" { value = var.test } ``` ### Debug Output https://gist.github.com/avanschie/080d0cb2018d580ac51f2152547cf897 ### Expected Behavior I expect the refresh to succeed, updating the output in the state with the new value. When I run the deprecated `terraform refresh -var test=bar` instead of `terraform apply -refresh-only -var test=bar`, the refresh succeeds. ### Actual Behavior In the case where the only change is the value of an output, the refresh (i.e., `terraform apply -refresh-only`) doesn't succeed and reports `Error: Cannot apply non-applyable plan`. ### Steps to Reproduce 1. `terraform init` 2. `terraform apply -auto-approve -var test=foo` 3. `terraform apply -refresh-only -var test=bar` ### Additional Context _No response_ ### 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.