小编Yay*_*aya的帖子

Terraform : 运行 terraform apply/plan 时指定工作目录

在运行 terraform apply 或 terraform plan 时,有没有办法(或解决方法)指定工作目录?例如 :

terraform apply working_dir/vpc
terraform apply working_dir/dns
terraform apply working_dir/postgres
terraform apply working_dir/service-a
terraform apply working_dir/service-b
Run Code Online (Sandbox Code Playgroud)

我知道有一个 target 选项,我们可以在其中指定target的资源。但在这里我需要一个文件夹来进行更多的抽象。最终目标是能够设置运行以下命令的基础设施:

make vpc
make dns
make postgres
make service-a
make service-b
Run Code Online (Sandbox Code Playgroud)

amazon-web-services terraform

7
推荐指数
2
解决办法
7471
查看次数

标签 统计

amazon-web-services ×1

terraform ×1