Loading...
Loading...
### Terraform Version ```shell Terraform v1.6.2 on linux_amd64 + provider registry.terraform.io/hashicorp/aws v5.22.0 Your version of Terraform is out of date! The latest version is 1.6.3. You can update by downloading from https://www.terraform.io/downloads.html ``` ### Terraform Configuration Files ```terraform terraform { cloud { organization = "my-organization" hostname = "tfe.example.com" # terraform enterprise endpoint workspaces { name = "my-workspace" } } } ``` ### Debug Output N/A ### Expected Behavior Supplying the `-refresh=false` should disable refreshing even if using terraform cloud or terraform enterprise. ### Actual Behavior As far as I can tell supplying `-refresh=false` on the command line does nothing if using terraform enterprise or terraform cloud with a `terraform.cloud` configuration. At least if VCS is set up for the workspace. I still see output saying that the state for all resources is being refreshed. ### Steps to Reproduce 1. Set up terraform with terraform cloud or enterprise 2. Run a plan or apply with the `-refresh=false` flag 3. Watch as that flag has no effect ### Additional Context The reason that I want to use `-refresh=false` is that when I am developing new configuration I sometimes want to run speculative plans to see the actual changes my code will produce. Needing to wait for the state to be refreshed for all resources slows that down, which makes iteration slower. I'd like to speed up the process so that I can iterate more quickly. when actually making a pull request, doing a full refresh is fine. As a sidenote, it is also annoying that I can't use the TF_LOG environment variable to get more verbose logs, or set an environment variable for a single speculative run. If I need to get debug logs, I have to to the settings of the workspace, set the TF_LOG environment variable, do the run, then go back and set it back, which is rather annoying. ### 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.