Terragruntのinclude-dir対象実行ではstrict includeを併用する
Terraform
CI/CD
Terragrunt
Terragruntのrun-allで--terragrunt-include-dirを使ってCIのapply対象を絞る場合、Terragruntのバージョンや挙動によって依存moduleが自動的に実行対象へ含まれる可能性がある。対象moduleを自前で解決しているCIでは、--terragrunt-strict-includeを併用して、スクリプトやworkflowが明示したmoduleだけを実行する方が意図しないapply範囲拡大を避けやすい。