terragrunt
terragrunt copied to clipboard
Question - run-all apply and optional module
I think it's not possible now but correct me if I'm wrong.
I'm using now terragrunt in following way:
terragrunt run-all --terragrunt-strict-include ... --terragrunt-include-dir=some_dir/*
Would it be possible in such usage to make some of the modules inside some_dir
optional or deployment dependant on some local. Currently I have configuration of my modules inside tfvar file which is changed for different deployments.
I know that I could add --terragrunt-exclude-dir... but I don't want to add logic of parsing the same tfvar that is used to configure modules file to just extract if I want or not to deploy optional module.
Hi,
I think can be used skip
property in dependencies HCL
Example: https://github.com/denis256/terragrunt-tests/tree/master/issue-2954
https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#skip
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue.