自动批准为所有 Terragrunt 模块应用外部依赖项

问题描述 投票:0回答:1

当我运行

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
1个回答
0
投票

您应该将标志

--terragrunt-include-external-dependencies
添加到
plan
命令中:

terragrunt run-all plan --terragrunt-include-external-dependencies

© www.soinside.com 2019 - 2024. All rights reserved.