Pluralith / pluralith-cli

A tool for Terraform state visualisation and automated generation of infrastructure documentation
https://www.pluralith.com
Mozilla Public License 2.0
783 stars 54 forks source link

Terragrunt Support #44

Open ddvdozuki opened 2 years ago

ddvdozuki commented 2 years ago

Our infra uses terragrunt for deployment and as such our raw terraform is not in a place where it can be initiated or applied independently. I can kinda hack it together to work by running terragrunt init on a singular module and then navigating to the terragrunt cache directory where all the terraform has been setup and ready to be applied and run the pluralith plan command there.

Sure would be nice if I could do something like pluralith run-all plan and it would grab all the modules in the directory and use the terragrunt dependency config to wire the graph up properly.

If you want to see an example of this terragrunt workflow, our repo is based off the terragrunt reference architecture and is also public, here is a link to a specific minimum environment configuration, this is the folder I'd love to be able to run pluralith on: https://github.com/Dozuki/CloudPrem-Infra/tree/master/live/standard/us-east-1/min. You'll see there are 2 modules there, physical and logical, and there are terragrunt dependencies between them that terragrunt manages automatically as defined in the common config file.

Let me know if this is already possible and I just missed it in the docs or if it's something that you guys would be planning on adding.

Thanks. Really liking what you've got so far 👍

DanThePutzer commented 2 years ago

Hi David, thanks for opening up the issue!

We definitely have Terragrunt on our radar. It is already on the Roadmap, give it an upvote here.

I can't tell you exactly when we'll be shipping Terragrunt support, as it'll take some under-the-hood state merging shenanigans that we still have to figure out before we can draw one comprehensive diagram from multiple tf projects. I'll make sure to keep you up to date on it.

Really appreciate the example project, that'll help big time once we get around to working on this!

DanThePutzer commented 2 years ago

Hi David,

We're about 90% there with Terragrunt support, but would need some input on a few specific things regarding folder structure. Would you be up for a chat about that?

emerconn commented 8 months ago

Hey @DanThePutzer, what is the status of this feature?

ddvdozuki commented 8 months ago

I am available if you need to chat. send an email to ddv@dozuki.com