当我运行
terragrunt run-all plan
时,系统会提示我批准我拥有的每个模块的外部依赖项。
如何自动批准所有模块?
Module: /Users/mugen/tf/environments/dev/module1
External dependency: /Users/mugen/tf/environments/global/iam
Should Terragrunt apply the external dependency? (y/n) y
...
Module: /Users/mugen/tf/environments/dev/modulen
External dependency: /Users/mugen/tf/environments/global/iam
Should Terragrunt apply the external dependency? (y/n) y
您应该将标志
--terragrunt-include-external-dependencies
添加到 plan
命令中:
terragrunt run-all plan --terragrunt-include-external-dependencies