Add better support for local commands against remote state
Particularly using tf console against the remote state. Even when the required options are done, this is not possibly, due to remote state being read-only, and tf console does not support the
“-lock=false” flag.
It would be nice if it worked like in Terraform Cloud, where the state is locked by the local cli, while active.
- Workaround
- Not to my knowledge
- Problem
This request was merged into another request
Comments3
Beige Celestial
Jun 3, 2025
Its quite cumbersome having to work with both spacectl and the tasks in browser UI, instead of just allowing a run to work against the remote state (this is possible on Terraform Cloud, so should be easy enough).
The biggest impact for me would be able to utilize this for the console aspect - but in reality this is useful in many other aspects - for example running plans with a known state, without having to put pressure on the private or public runnners.
Black Breeze
May 10, 2025
Thanks for posting this! Quick question—did Local Preview solve what you were originally trying to do? Or is there still something missing that requires running local commands against the state?
We’d love to understand the job behind this better. For example, are you trying to inspect resources, debug drift, test a terraform console query, or something else?
Getting clearer on the outcome you’re after will help us figure out whether there’s a gap in visibility, trust, or tooling—and whether it’s something we already support in another way.
Beige Celestial
May 2, 2025
A use-case that have been identified since this was posted is ability to run local plans, without affecting the private runners. For development purpose, its often enough to run multiple local preview (running locally), before submitting PRs, which is then running proposed plans in private runners.