在运行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
我知道有一个目标选项,我们可以在其中指定 target 的资源 . 但在这里我需要一个文件夹来获得更多抽象 . 最终目标是能够设置运行以下命令的基础结构:
make vpc
make dns
make postgres
make service-a
make service-b
1 回答
您可以在发出apply命令时指定计划或目录 . 您的示例是有效的应用命令 .