# Hashicorp/aws: no available releases match the given constraints 5.83.1

**URL:** <https://discuss.hashicorp.com/t/hashicorp-aws-no-available-releases-match-the-given-constraints-5-83-1/72572>\
**Category:** Terraform\
**Created:** [January 14, 2025, 1:52pm UTC](https://discuss.hashicorp.com/t/hashicorp-aws-no-available-releases-match-the-given-constraints-5-83-1/72572 "2025-01-14T13:52:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![loganmzz](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/loganmzz/32/24319_2.png) [@loganmzz](https://discuss.hashicorp.com/u/loganmzz)\
**Post date:** [January 14, 2025, 1:52pm UTC](https://discuss.hashicorp.com/t/hashicorp-aws-no-available-releases-match-the-given-constraints-5-83-1/72572/1 "2025-01-14T13:52:16Z")

</div>

I think I can’t have simpler setup:

```hcl
# main.tf
terraform {
  required_providers {
    aws = {
      source = "hashicorp/aws"
      version = "5.83.1"
    }
  }
}

```

And I run:

```shell
terraform version && terraform providers && terraform init

```

Got:

```plaintext
Terraform v1.10.4
on linux_amd64

Providers required by configuration:
.
└── provider[registry.terraform.io/hashicorp/aws] 5.83.1

Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/aws versions matching "5.83.1"...
╷
│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider hashicorp/aws: no available releases match the given constraints 5.83.1
│ 
│ To see which modules are currently depending on hashicorp/aws and what versions are specified, run the following command:
│ terraform providers
╵

```

What am I missing?

---

<div class="post-metadata">

**Author:** ![loganmzz](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/loganmzz/32/24319_2.png) [@loganmzz](https://discuss.hashicorp.com/u/loganmzz)\
**Post date:** [January 14, 2025, 2:26pm UTC](https://discuss.hashicorp.com/t/hashicorp-aws-no-available-releases-match-the-given-constraints-5-83-1/72572/2 "2025-01-14T14:26:23Z")

</div>

I have checked registry and everything sounds good:

```shell
curl https://registry.terraform.io/v1/providers/hashicorp/aws/versions | jq '.versions | map(select(.version == "5.83.1"))'

```

```json
[
  {
    "version": "5.83.1",
    "protocols": [
      "5.0"
    ],
    "platforms": [
      {
        "os": "linux",
        "arch": "arm"
      },
      {
        "os": "freebsd",
        "arch": "amd64"
      },
      {
        "os": "linux",
        "arch": "arm64"
      },
      {
        "os": "freebsd",
        "arch": "386"
      },
      {
        "os": "linux",
        "arch": "386"
      },
      {
        "os": "freebsd",
        "arch": "arm"
      },
      {
        "os": "openbsd",
        "arch": "amd64"
      },
      {
        "os": "openbsd",
        "arch": "386"
      },
      {
        "os": "darwin",
        "arch": "amd64"
      },
      {
        "os": "openbsd",
        "arch": "arm"
      },
      {
        "os": "windows",
        "arch": "amd64"
      },
      {
        "os": "windows",
        "arch": "386"
      },
      {
        "os": "linux",
        "arch": "amd64"
      },
      {
        "os": "darwin",
        "arch": "arm64"
      }
    ]
  }
]

```

I don’t know if I can check something against `protocols` and `platforms` values…

---

<div class="post-metadata">

**Author:** ![loganmzz](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/loganmzz/32/24319_2.png) [@loganmzz](https://discuss.hashicorp.com/u/loganmzz)\
**Post date:** [January 14, 2025, 5:18pm UTC](https://discuss.hashicorp.com/t/hashicorp-aws-no-available-releases-match-the-given-constraints-5-83-1/72572/3 "2025-01-14T17:18:56Z")

</div>

I finally cleared my `~/.terraform.d` directory and Terraform was happy. Then I had another issue when using Terragrunt. I needed to clear again `~/.terraform.d` and also `~/.terragrunt`…

---

<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:** [February 13, 2025, 5:19pm UTC](https://discuss.hashicorp.com/t/hashicorp-aws-no-available-releases-match-the-given-constraints-5-83-1/72572/4 "2025-02-13T17:19:47Z")

</div>

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