terragrunt icon indicating copy to clipboard operation
terragrunt copied to clipboard

Question - run-all apply and optional module

Open MichalKoziorowski-TomTom opened this issue 1 year ago • 1 comments

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

denis256 avatar Feb 21 '24 19:02 denis256

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.

github-actions[bot] avatar Aug 16 '24 01:08 github-actions[bot]