hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.78k stars 9.13k forks source link

[Bug]: 5.71.0 Not Available via registry.terraform.io #39694

Open bjf-rga opened 2 days ago

bjf-rga commented 2 days ago

Terraform Core Version

n/a

AWS Provider Version

5.71.0

Affected Resource(s)

All

Expected Behavior

aws provider 5.71.0 downloads

Actual Behavior

- Finding hashicorp/aws versions matching "5.71.0"...
╷
│ 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.71.0
╵

Relevant Error/Panic Output Snippet

$ curl https://registry.terraform.io/v1/providers/hashicorp/aws/versions | jq .versions[].version | sort -V | tail -2
"5.69.0"
"5.70.0"

### Terraform Configuration Files

terraform { required_version = ">= 1.9.7" required_providers { aws = { source = "hashicorp/aws" version = "= 5.70.0" } } }


### Steps to Reproduce

terraform init -upgrade -reconfigure



### Debug Output

n/a

### Panic Output

n/a

### Important Factoids

_No response_

### References

While 5.71.0 is listed as the latest release here, it's not available via registry.terraform.io

### Would you like to implement a fix?

None
github-actions[bot] commented 2 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

jahaniam commented 1 day ago

https://github.com/hashicorp/terraform-provider-aws/issues/39681#issuecomment-2407642106

Looks like the package is retracted but the registry is still pointing to the new version.

This fails our pipelines.

rhowe commented 1 day ago

5.71.0 is listed in the versions output, but there are no platforms specified for it.

Compare

curl -fs https://registry.terraform.io/v1/providers/hashicorp/aws/versions | jq '.versions[]|select(.version == "5.70.0")|.platforms'

vs

curl -fs https://registry.terraform.io/v1/providers/hashicorp/aws/versions | jq '.versions[]|select(.version == "5.71.0")|.platforms'

If you are using Artifactory to provide an internal mirror of the registry, this confuses it.