使用 terragrunt 定位单个 terraform 模块及其依赖项
Target a single terraform module and its dependencies using terragrunt
Terragrunt 允许我们同时在多个模块上执行 terraform 命令 ([1])。
然而,有时我们希望针对单个模块及其依赖项,以便仅为这些模块创建和应用计划。
这看起来像
terragrunt -target backend-app plan-all
其中 backend-app 是我们定位的模块的示例名称。
有没有办法用 terragrunt cli 来实现?
[1] - https://github.com/gruntwork-io/terragrunt#execute-terraform-commands-on-multiple-modules-at-once
Terragrunt 具有未传递给 terraform ([1]) 的全局选项。
这成功了:
terragrunt plan-all --terragrunt-include-dir "backend-app"
可以组合其他选项以实现更精细的选择。
[1] - https://github.com/gruntwork-io/terragrunt#cli-options
Terragrunt 允许我们同时在多个模块上执行 terraform 命令 ([1])。 然而,有时我们希望针对单个模块及其依赖项,以便仅为这些模块创建和应用计划。
这看起来像
terragrunt -target backend-app plan-all
其中 backend-app 是我们定位的模块的示例名称。
有没有办法用 terragrunt cli 来实现?
[1] - https://github.com/gruntwork-io/terragrunt#execute-terraform-commands-on-multiple-modules-at-once
Terragrunt 具有未传递给 terraform ([1]) 的全局选项。
这成功了:
terragrunt plan-all --terragrunt-include-dir "backend-app"
可以组合其他选项以实现更精细的选择。
[1] - https://github.com/gruntwork-io/terragrunt#cli-options