【发布时间】:2017-10-04 14:06:27
【问题描述】:
我正在运行以下命令并看到 Terraform has been successfully initialized! 的输出
terraform init \
-backend=true \
-backend-config="bucket=terraform-remote-states" \
-backend-config="project=<<my-poject>>" \
-backend-config="path=terraform.tfstate"
但是,当我运行模板时,它会在本地而不是在 GCS 中创建状态文件。
不确定我在这里缺少什么。感谢任何想法和帮助。
【问题讨论】:
-
什么版本?
terraform init在 v0.9.x 前后有不同的行为
标签: google-cloud-platform google-cloud-storage terraform