首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Terraform apply无法保存状态: Google Cloud Platform上的HTTP错误: 308

Terraform apply无法保存状态: Google Cloud Platform上的HTTP错误: 308
EN

Stack Overflow用户
提问于 2020-09-19 02:08:16
回答 1查看 750关注 0票数 0

当我尝试terraform apply在Google上启动一些节点时,我得到了一个错误,仅仅是为Kubernetes上的GitLab Ci/CD管道做准备。

代码语言:javascript
运行
复制
terraform apply -auto-approve -lock=false       
google_container_cluster.default: Creating...
google_container_cluster.default: Still creating... [10s elapsed]
Failed to save state: HTTP error: 308


Error: Failed to persist state to backend.

The error shown above has prevented Terraform from writing the updated state
to the configured backend. To allow for recovery, the state has been written
to the file "errored.tfstate" in the current working directory.

Running "terraform apply" again at this point will create a forked state,
making it harder to recover.

To retry writing this state, use the following command:
    terraform state push errored.tfstate
EN

Stack Overflow用户

发布于 2020-09-29 19:00:23

感谢Michael Crilly@ninja@ashishonnetThe DevOps Lounge不和谐社区上的建议,来评论backend "http" {}这一行,并尝试一些其他的东西。实际上,评论在HTTP error: 308 on Google Cloud Platform上运行得很好。

多亏了@guillaume blaquiere,当他发现我使用项目名称而不是项目ID时,他在point上是正确的。

代码语言:javascript
运行
复制
provider "google" {
 credentials = file("~/gitops-project-290611-01b6aabd6093.json")
 project     = "gitops-project-290611"
 region      = "us-central1-a"
}
票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63960775

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档