Hello all , I am working on some terraform changes in our repository . The changes is for creating a IAM role . Post making the changes i am getting the below error when trying to do terraform apply. Both the terraform init and terraform plan command works without any issues.
│ Error: Could not load plugin
│
│
│ Plugin reinitialization required. Please run "terraform init".
│
│ Plugins are external binaries that Terraform uses to access and manipulate
│ resources. The configuration provided requires plugins which can't be located,
│ don't satisfy the version constraints, or are otherwise incompatible.
│
│ Terraform automatically discovers provider requirements from your
│ configuration, including providers used in child modules. To see the
│ requirements and constraints, run "terraform providers".
│
│ failed to instantiate provider "registry.terraform.io/-/aws" to obtain schema: unknown provider "registry.terraform.io/-/aws"
Here is the output of my terraform version
terraform --version
Terraform v1.0.9
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v2.70.4
Your version of Terraform is out of date! The latest version
is 1.7.3. You can update by downloading from https://www.terraform.io/downloads.html
Not sure why it is looking for a "registry.terraform.io/-/aws"
instead of registry.terraform.io/hashicorp/aws