Terraform 错误地形初始化、计划、应用

Terraform 错误地形初始化、计划、应用,terraform,terraform-provider-aws,Terraform,Terraform Provider Aws,当terraform初始化、计划或应用时,我面临以下错误 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 upd

当terraform初始化、计划或应用时,我面临以下错误

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

有什么线索吗?

如果你在MacOS上安装了LittleSnitch,那么terraform会因为签名无效而被小告密者拦截。只需删除相应的规则或在LittleSnitch中修改它。

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


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

看起来它无法解决该服务。dig sts.amazonaws.com的输出是什么?该DNS服务器看起来像一个本地DNSMasq,你在那里做什么特别的事情吗,还是只是一个股票缓存服务器?有一个类似的问题“配置后端“s3”时出错:RequestError:send request failed”,加起来是我的Mac(libressl)上的ssl出现问题,重新启动该技巧是否为我提供了解决方法: