Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update required_providers block in versions.tf #77

Open
joelgaria opened this issue Jan 17, 2024 · 1 comment
Open

Update required_providers block in versions.tf #77

joelgaria opened this issue Jan 17, 2024 · 1 comment

Comments

@joelgaria
Copy link

Hi,

I've encountered an issue while running Terraform, and it appears to be related to the provider requirements in the versions.tf file of my module. The error I'm encountering is:

Finding hashicorp/aws versions matching ">= 3.50, < 5.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 >= 3.50, < 5.0

Upon reviewing the code, I noticed that the required_providers block in versions.tf file is specified as follows:

terraform {
  required_version = ">= 0.12.20, < 2.0"

  required_providers {
    aws = ">= 3.50, < 5.0"
  }
}

However, it seems there's an issue with this version specification, as I'm getting an error when running Terraform. I propose updating the required_providers block in the versions.tf file as follows:

terraform {
  required_version = ">= 0.12.20, < 2.0"

  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = ">= 3.50"
    }
  }
}

This modification should resolve the issue and ensure the correct resolution of AWS provider versions.

Thank you for your attention.

@ishworg
Copy link

ishworg commented Apr 8, 2024

@joelgaria thanks.

FWIW, I haven't checked git blame and I am not sure who needs to hear this but the AWS provider is too old. Can we kindly please have it updated? thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants