在运行 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)