-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
graph needs option to disable backend (-backend=false) #32462
Comments
Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Thanks again! |
Hi @nicain! Thanks for this feature request. I'd like to hear a little more about what you intend to do with this graph, so we can think about what exactly it would mean to generate a graph without an initialized backend. The I assume you have a different goal that's a little outside of the current intent for Thanks! |
My use case would be to chase down cycles to eliminate them before committing my changes to the automation system that deploys, and for which I do not have access to attach to the real backend to manipulate directly. For instance, I would run:
This would allow me to locally debug without the commit-to-automation system step for remote real validation. Not even sure I could run the graph directive in that environment without some sort of admin resource. |
Terraform Version
Use Cases
Using terraform graph to build a dot file, when main.tf has a backend configured
Attempted Solutions
Commenting out the backend block in the terraform block accomplished what I need, but I cannot automate it and its a bit cumbersome
Proposal
Include a command line arg similar to -backend=false in from init, to ignore the backend directive. Otherwise I have to comment out the backend directive in the source code to run graph
References
None
The text was updated successfully, but these errors were encountered: