'Terraform: The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ValidateProviderConfig call

The plugin logs may contain more details

I am trying to deploy an EKS cluster in the eu-central-1 region on aws in terraform. What am I doing wrong here? This is my provider:

provider "aws" {
  region = "eu-central-1"
}
❯ terraform validate
╷
│ Error: Plugin did not respond
│
│   with provider["registry.terraform.io/hashicorp/aws"],
│   on provider.tf line 1, in provider "aws":
│    1: provider "aws" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ValidateProviderConfig call. The plugin logs may contain more details.


Solution 1:[1]

It seems that terraform can work very unpredictably with Apple M1 chips:

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

Jeez, it has been the 5th time that this happened already. If you simply wait 20 minutes and run terraform init/validate/apply again, often your problems are solved. If you face this issue, try it! It works!

Solution 2:[2]

I was facing issues related to this in M1 silicon and setting this helped

export GODEBUG=asyncpreemptoff=1

Related discussion: https://github.com/hashicorp/terraform/issues/27350

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 ShivaGaire