# Terraform - Error: Could not load plugin v1.0.9

**URL:** <https://discuss.hashicorp.com/t/terraform-error-could-not-load-plugin-v1-0-9/62879>\
**Category:** Terraform\
**Created:** [February 17, 2024, 7:47pm UTC](https://discuss.hashicorp.com/t/terraform-error-could-not-load-plugin-v1-0-9/62879 "2024-02-17T19:47:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shyam2794](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/shyam2794/32/40404_2.png) [@shyam2794](https://discuss.hashicorp.com/u/shyam2794)\
**Post date:** [February 17, 2024, 7:47pm UTC](https://discuss.hashicorp.com/t/terraform-error-could-not-load-plugin-v1-0-9/62879/1 "2024-02-17T19:47:02Z")

</div>

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.

```auto
│ 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

```auto
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`

---

<div class="post-metadata">

**Author:** ![apparentlymart](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/apparentlymart/32/702_2.png) [@apparentlymart](https://discuss.hashicorp.com/u/apparentlymart)\
**Post date:** [February 20, 2024, 6:48pm UTC](https://discuss.hashicorp.com/t/terraform-error-could-not-load-plugin-v1-0-9/62879/2 "2024-02-20T18:48:57Z")

</div>

Hi @shyam2794,

It seems like your current state was created with an older version of Terraform and you haven’t completed [the Terraform v0.13 upgrade steps](https://developer.hashicorp.com/terraform/language/v1.1.x/upgrade-guides/0-13), so your latest state snapshots contain old-style provider references that don’t specify which namespace they belong to.

If your configuration is _also_ still targeting an older version of Terraform then I would suggest following the Terraform v0.13 upgrade steps (in the document I linked above) to also get your configuration updated to the new structure.

If you’re sure that it’s only the state snapshot that needs upgrading, you might instead refer to [Why do I see `-/provider` during init?](https://developer.hashicorp.com/terraform/language/v1.1.x/upgrade-guides/0-13#why-do-i-see-provider-during-init) for a section focused specifically on the symptom you’ve described here, which includes a targeted solution for just that problem.

(That documentation asserts that these legacy addresses “don’t cause a problem for Terraform”, and that was true at the time of the Terraform v0.13 release, but that version of Terraform is now very old and so the automatic upgrade code is no longer present in more recent versions of Terraform, and thus this has become an error.)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/hashicorp/original/1X/79bf76adfd92a75631996933098f9ce29d37abf3.svg) [@system](https://discuss.hashicorp.com/u/system)\
**Post date:** [August 18, 2024, 6:49pm UTC](https://discuss.hashicorp.com/t/terraform-error-could-not-load-plugin-v1-0-9/62879/3 "2024-08-18T18:49:11Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
