properly exclude directories from run-all plan?
Is this the correct syntax? `terragrunt run-all plan --terragrunt-exclude-dir './us-east-1/ecs/services/' --terragrunt-non-interactive -lock-timeout=10m` No matter the path I put in, I can not get this directory to stop planning my ecs service directory. I’ve tried: - quoted - unquoted - relative path - absolute path - excluding all of `./us-east-1/*` but this still plans everything My directory structure is: ``` app/ terraform/ live/ us-east-1/ ecs/ rds/ sqs/ ``` My top level `terragrunt.hcl` file is in `app/terraform/live` and this is where I'm running the above command from. --- <ins datetime="2022-11-08T16:50:01Z"> <p><a href="https://support.gruntwork.io/hc/requests/109571">Tracked in ticket #109571</a></p> </ins>
Hi, was considered to use `**` in path since it has multiple levels? ``` terragrunt run-all plan --terragrunt-exclude-dir **/ecs/services ``` Example: ``` . ├── README.md └── app └── terraform └── live └── us-east-1 ├── ecs │ ├── main.tf │ ├── services │ │ ├── main.tf │ │ └── terragrunt.hcl │ └── terragrunt.hcl ├── rds │ ├── main.tf │ └── terragrunt.hcl └── sqs ├── main.tf └── terragrunt.hcl ``` Default execution: ``` $ terragrunt run-all plan [INFO] Getting version from tgenv-version-name [INFO] TGENV_VERSION is 0.40.1 Group 1 - Module /projects/gruntwork/terragrunt-tests/exclude/app/terraform/live/us-east-1/ecs - Module /projects/gruntwork/terragrunt-tests/exclude/app/terraform/live/us-east-1/ecs/services - Module /projects/gruntwork/terragrunt-tests/exclude/app/terraform/live/us-east-1/rds - Module /projects/gruntwork/terragrunt-tests/exclude/app/terraform/live/us-east-1/sqs ``` Exclusion: ``` $ terragrunt run-all plan --terragrunt-exclude-dir **/ecs/services [INFO] Getting version from tgenv-version-name [INFO] TGENV_VERSION is 0.40.1 INFO[0000] The stack at /projects/gruntwork/terragrunt-tests/exclude will be processed in the following order for command plan: Group 1 - Module /projects/gruntwork/terragrunt-tests/exclude/app/terraform/live/us-east-1/ecs - Module /projects/gruntwork/terragrunt-tests/exclude/app/terraform/live/us-east-1/rds - Module /projects/gruntwork/terragrunt-tests/exclude/app/terraform/live/us-east-1/sqs ``` https://github.com/denis256/terragrunt-tests/tree/master/exclude