gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
8.09k stars 981 forks source link

forward terraform graph command #3404

Open m-ronchi opened 2 months ago

m-ronchi commented 2 months ago

Describe the bug

terraform graph is a command for showing dependencies between resources

terragrunt graph is a different command

there is no way (or docs are incomplete) to make terragrunt forward the graph command to terraform

Steps To Reproduce

terragrunt ??? graph

Expected behavior

terragrunt runs the terraform graph command

denis256 commented 2 months ago

I think this one will be fixed with CLI interface redesign

yhakbar commented 2 months ago

For context, @m-ronchi , we have an interface redesign that is currently in internal review. Once we finish with that review, I'll be publishing it as a public RFC for community feedback. It will directly address this issue.

If you're looking for a workaround in the short-term, navigate to the relevant .terragrunt-cache/x/y directory that's created when you run terragrunt init, and use tofu/terraform graph there.

yhakbar commented 1 month ago

@m-ronchi , please take a look at #3445 , and see if that provides the type of user experience with Terragrunt that would have mitigated this issue, in your opinion.