3

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".

有什么线索吗?

4

2 回答 2

2

如果您在 MacOS 上并安装了 LittleSnitch,那么由于签名无效,terraform 会被 little snitch 阻止。去LittleSnitch删除相应的规则或者修改即可。

于 2018-10-11T16:22:19.447 回答
0

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

一旦您能够连接到 s3,它应该会自动修复。

于 2018-10-30T07:43:54.170 回答