Terraform:插件遇到错误,无法响应插件。(*GRPCProvider).ValidateProviderConfig 调用

Lep*_*kem 13 terraform terraform-provider-aws

The plugin logs may contain more details

\n

我正在尝试在 terraform 中的 aws 上的 eu-central-1 区域中部署 EKS 集群。\n我在这里做错了什么?\n这是我的提供商:

\n
provider "aws" {\n  region = "eu-central-1"\n}\n
Run Code Online (Sandbox Code Playgroud)\n
\xe2\x9d\xaf terraform validate\n\xe2\x95\xb7\n\xe2\x94\x82 Error: Plugin did not respond\n\xe2\x94\x82\n\xe2\x94\x82   with provider["registry.terraform.io/hashicorp/aws"],\n\xe2\x94\x82   on provider.tf line 1, in provider "aws":\n\xe2\x94\x82    1: provider "aws" {\n\xe2\x94\x82\n\xe2\x94\x82 The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ValidateProviderConfig call. The plugin logs may contain more details.\n
Run Code Online (Sandbox Code Playgroud)\n

Gee*_*bhu 13

我在 M1 芯片中遇到了与此相关的问题,设置它有帮助

export GODEBUG=asyncpreemptoff=1
Run Code Online (Sandbox Code Playgroud)

相关讨论: https: //github.com/hashicorp/terraform/issues/27350


Lep*_*kem 8

看来 terraform 可以非常不可预测地与 Apple M1 芯片配合使用:

https://github.com/hashicorp/terraform-provider-aws/issues/16948

天哪,这已经是第五次发生了。如果你只是等待 20 分钟然后terraform init/validate/apply再次运行,通常你的问题就会得到解决。如果你遇到这个问题,不妨尝试一下!有用!

  • 我连续快速发送垃圾邮件“terraform apply”3次,它总是在第3次工作(是的,这很荒谬)“darwin_amd64上的Terraform v1.1.4 +提供商registry.terraform.io/hashicorp/aws v3.74.0” (3认同)