Using Terragrunt
There are 2 ways of using Digger with Terragrunt:
- individual projects
- dynamically generated projects
Individual projects
Digger using a single terragrunt project if you just list it as a project as follows:
This will perform a terragrunt apply
after changes are detected within this directory.
Dynamically generating Terragrunt projects
In many cases with terragrunt you don’t want to mention all of your terragrunt components since there can be tens or hundreds of those (not to mention all the dependencies of those). In this case you can just liase it to digger and it will perform dynamic generation of projects for you and trigger the relevant terragrunt apply
commands on all impacated projects per pull request. It will also handle dependencies of these projects. You can configure this using the following:
And the workflow for this needs to use setup-terragrunt: true
as follows: