terraform-aws-modules / terraform-aws-key-pair

Terraform module to create AWS EC2 key pair resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/key-pair/aws
Apache License 2.0
83 stars 127 forks source link

No provider "aws" plugins meet the constraint #3

Closed franviera92 closed 4 years ago

franviera92 commented 4 years ago

Hello!

I have problem with new update

fran@fran-X580VD:~/mesa-dinero/dev/back$ terraform init Initializing modules... Downloading terraform-aws-modules/key-pair/aws 0.3.0 for key_pair2...

  • key_pair2 in .terraform/modules/key_pair2/terraform-aws-modules-terraform-aws-key-pair-06fa6de

Initializing the backend...

Initializing provider plugins...

  • Checking for available provider plugins...

No provider "aws" plugins meet the constraint "~> 2.23,~> 2.46.0,~> 2.53".

The version constraint is derived from the "version" argument within the provider "aws" block in configuration. Child modules may also apply provider version constraints. To view the provider versions requested by each module in the current configuration, run "terraform providers".

To proceed, the version constraints for this provider must be relaxed by either adjusting or removing the "version" argument in the provider blocks throughout the configuration.

Error: no suitable version is available

antonbabenko commented 4 years ago

Hi @franviera92 !

You need to update your installed Terraform AWS provider. The simplest way is to remove .terraform directory and run terraform init once more.

If for some reason you have to use the previous version, then you have to use the previous version of this module.

wsizoo commented 4 years ago

Make sure you don't have a provider_override.tf file with a version set.

queglay commented 4 years ago

I am also seeing this when I try to use aws provider version 3.0.0 with terraform 0.12.29 I attempted to remove the .terraform folder but the problem remained.

https://github.com/terraform-providers/terraform-provider-aws/issues/14443

github-actions[bot] commented 2 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.