- individual projects
- dynamically generated projects
Individual projects
Demo repo Digger uses a single terragrunt project if you just list it as a project as follows:terragrunt apply
after changes are detected within this directory.
Dynamically generating Terragrunt projects
This is not the preferred way of generating terragrunt projects and we advise you to instead use the blocks declarative
since this way may be deprecated in the future
terragrunt apply
commands on all impacted projects per pull request. It will also handle dependencies of these projects. You can configure this using the following:
setup-terragrunt: true
as follows:
Note regarding SOPS
Since currently the generation happens in the backend where no access to SOPS variables exist this means that if you use sops_decrypt_file in your terragrunt.hcl it will lead to an exception of sops decryption failed. Current workaround is to use environment variableDIGGER_GENERATE_PROJECT
and check if its true as follows: