-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Would it be possible to include Terragrunt support with an example? #258
Comments
Hey @danielmapar, I'm a fan of this feature request! And you've raised it at the perfect time, just ahead of the upcoming v11 major version release. There're a few points of interest worth mentioning:
|
@rdhar that sounds great! Thanks for the updates, excited to see the new release. I would say the top 1 command one needs to support for Terragrunt is: terragrunt run-all plan/apply/destroy. Terragrunt itself implements all base Terraform commands as well, more here.
I am not sure if that will impact your implementation, but it is also worth noting that Terragrunt creates multiple Once again, fantastic project. Keep me posted if you have any further questions. |
One fantastic project to use as a benchmark to validate your Not sure if it helps, but Terragrunt also has its own |
Hi @danielmapar, here to share a small but unhelpful update. This is still on my radar and something I'd love to implement support for. Unfortunately, I'm struggling to reconcile Terragrunt's wrapper within TF-via-PR. With this Action acting as the thinnest of wrappers around Terraform/Tofu to render their CLI output in a formatted PR comment, it seems to me too basic to handle Terragrunt configuration. To give an example, let's take the process of running a plan across multiple directories and storing the associated TF plan files. TF-via-PR requires the directory paths (from Were it to support Terragrunt's run-all plan, TF-via-PR would somehow need to recursively search through folders of the current working directory in order to identify all of the TF plan files for upload. Unlike the parallel jobs run in matrix strategy, this Action would also need to consolidate various outputs of run-all plan in one PR comment, or perhaps one PR comment for each folder. Given that Gruntwork manages both the live-example and terragrunt-action, there must be repo where both are combined to demonstrate a "real-life" usage scenario of Terragrunt in GitHub Actions CI, right? |
Hi @danielmapar, following the recent v12 release, TF-via-PR has been re-written in pure Bash (read highlights). Aside from a 55% reduction in codebase and zero external dependencies, we've consolidated Terraform/OpenTofu CLI operations to lower the barrier to entry for contribution and maintenance. With that said, I'm still keen on implementing Terragrunt support, and think the current setup is geared towards it. However, I no longer get to use Terragrunt on a day-to-day basis and largely reliant on reading docs on how it operates. On that note, the first hurdle I see is the handling of plan files. More specifically, currently users pass in their |
Closing out for now until we can allocate time & resources to address. |
Is your feature request related to a problem
I would love to try this tool with my current Terragrunt setup. However, I don't see how I could integrate it with your tool.
Describe the solution you'd like
Besides installing and setting up Terraform, I wish to setup Terragrunt and have commands such as
apply-all
,plan-all
,init-all
,delete-all
and others to be encompassed by this workflow.Describe alternatives you've considered
I am considering using the Terragrunt github actions workflow, but it does not support triggering actions via comments. https://github.com/gruntwork-io/terragrunt-action
Additional context
N/A
The text was updated successfully, but these errors were encountered: