Terragrunt with Directory Globs
Support for the gruntwork-io/terragrunt-infrastructure-live-example (opens in a new tab) repository.
when_modified:
file_patterns: []
workflows:
- tag_query: ""
terragrunt: true
plan:
- type: plan
apply:
- type: apply
dirs:
'_envcommon/**':
when_modified:
file_patterns: []
'prod/**/terragrunt.hcl':
when_modified:
file_patterns: ['_envcommon/**/*.hcl', '${DIR}/*.hcl']
Longest glob always wins.
In the example above, **/terragrunt.hcl
is longer than _envcommon/**
.