terraform - 检查 "s3"后端中的状态时出错 : NoSuchBucket: The specified bucket does not exist

标签 terraform

我正在运行terraform init在我的 terraform 模块文件夹中,我正在下方。

Error inspecting states in the "s3" backend:
    NoSuchBucket: The specified bucket does not exist
    status code: 404, request id: 6667B0A661F9C62F, host id: 3mC8DNrS/gGHtp7mhVMRtpIUeMaNXs2cEozEY+akZf1ixFD6x2qQx7c3mX02M1BIbyfYowYt35s=

最佳答案

我遇到了同样的问题。

使用 aws 命令 aws s3 lsaws s3api list-objects --bucket bucket-name
我可以列出内容,但仍然遇到同样的问题。

Error inspecting states in the "s3" backend: NoSuchBucket: The specified bucket does not exist status code: 404, request id: xxxxx, host id: xxxxxx



删除了./terraform目录,它解决了我的问题。

关于terraform - 检查 "s3"后端中的状态时出错 : NoSuchBucket: The specified bucket does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50844085/

相关文章:

amazon-ec2 - 使用 Terraform 创建可达性分析器路径

azure - 在 Azure 上使用 Terraform 部署具有托管标识的 VM 失败

azure - Terraform 在未指定的情况下强制将值设置为 null

amazon-web-services - aws 安全组的 Terraform 中的变量值

amazon-web-services - terraform api 网关与 openapi 规范集成

amazon-web-services - Terraform 破坏 API 网关且 VPC 链接失败

azure - 使用 Terraform 阻止允许共享访问 key

amazon-web-services - 如何从Airflow提交Spark作业到EMR集群?

terraform - 如何在磁盘附件后应用 remote-exec 配置程序?

azure - 使用 terraform 的 Azure VM 上的 Tomcat?