You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently doing a terraform show does not implicitly do a terraform refresh; unlike the behavior of terraform plan. Perhaps it's better to change the implicit behavior and to provide an option to not refresh instead (something simple like terraform show --no-fresh)?
Maybe there are good design reasons for this; if so would like to know why.
Terraform Version
Terraform v0.11.3
The text was updated successfully, but these errors were encountered:
terraform show is intended mainly as a debugging command to quickly view what's in the state. We've since added the terraform state family of commands to group commands of this type, but terraform show predated that and so remains as a top-level command.
We're planning to spend some time improving and adjusting the CLI workflows once we've finished our current work on improving the configuration language, so I'm going to label this to remind us to look more closely at this once we get there, and see how it fits in with other enhancements to the CLI flow.
We'd need to approach a change here with care because it would cause terraform show to start requiring fully-complete provider configurations and credentials, whereas today it requires only an initialized backend and backend credentials; we need to take into account users who may be using this command in other ways and make sure there's an upgrade path for them. That'll be safer to do as part of a related set of changes rather than in isolation here.
Currently doing a terraform show does not implicitly do a terraform refresh; unlike the behavior of terraform plan. Perhaps it's better to change the implicit behavior and to provide an option to not refresh instead (something simple like terraform show --no-fresh)?
Maybe there are good design reasons for this; if so would like to know why.
Terraform Version
Terraform v0.11.3
The text was updated successfully, but these errors were encountered: