首页 文章

错误terraform init,plan,apply

提问于
浏览
1

当terraform init,plan或apply时,我面临以下错误

Failed to load backend: 
Error configuring the backend "s3": RequestError: send request failed
caused by: Post https://sts.amazonaws.com/: dial tcp: lookup sts.amazonaws.com on 127.0.1.1:53: server misbehaving

Please update the configuration in your Terraform files to fix this error.
If you'd like to update the configuration interactively without storing
the values in your configuration, run "terraform init".

有什么线索吗?

2 回答

  • 0

    当您的计算机和s3之间存在连接问题时,会发生这种情况 . 由于该时段的互联网不稳定,可能会发生这种情况 .

    一旦你能够与s3连接,它应该自动修复 .

  • 1

    如果您使用的是MacOS并且安装了LittleSnitch,那么由于它的签名无效,terraform会因为小错误而被阻止 . 只需删除相应的规则或在LittleSnitch中修改它 .

相关问题