gpt4 book ai didi

terraform - 无法获取现有工作区 : querying Cloud Storage failed: storage: bucket doesn't exist

转载 作者:行者123 更新时间:2023-12-03 14:35:33 25 4
gpt4 key购买 nike

在云构建中使用 terraform,但在这一步失败了

steps:
# Terraform
- id: 'configure_terraform'
name: node:10.16.3
entrypoint: "node"
args: ["./create_terraform_config.js",
"../terraform/override.tf",
"${_TERRAFORM_BUCKET_NAME}",
"${_TERRAFORM_BUCKET_PATH}"]
dir: "app/scripts"
- id: 'init_terraform'
name: hashicorp/terraform:light
args: ["init"]
dir: "app/terraform"


正在初始化后端...

成功配置后端“gcs”! Terraform 将自动
除非后端配置更改,否则使用此后端。

错误:无法获取现有工作区:查询 Cloud Storage 失败:存储:存储桶不存在

最佳答案

这将解决问题

terraform init -reconfigure

引用: https://github.com/hashicorp/terraform/issues/23532#issuecomment-560493391

关于terraform - 无法获取现有工作区 : querying Cloud Storage failed: storage: bucket doesn't exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59053993/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com