Comments (2)
Same issue...following the written directions results in the error:
Could not retrieve the list of available versions for provider hashicorp/aws: locked provider registry.terraform.io/hashicorp/aws 3.63.0 does not match configured version constraint >= 3.15.0, >= 3.20.0, >= 3.64.0; must use terraform init -upgrade to allow selection of new versions
Running terraform init -upgrade
does work but the documentation https://learn.hashicorp.com/tutorials/terraform/eks?in=terraform/kubernetes doesn't state to do it.
from learn-terraform-provision-eks-cluster.
This seems to be resolved after running terraform init -upgrade
:
[dylan@dylantaylor-precision Projects]$ cd learn-terraform-provision-eks-cluster/
[dylan@dylantaylor-precision learn-terraform-provision-eks-cluster]$ terraform init
Initializing modules...
Downloading terraform-aws-modules/eks/aws 17.22.0 for eks...
- eks in .terraform/modules/eks
- eks.fargate in .terraform/modules/eks/modules/fargate
- eks.node_groups in .terraform/modules/eks/modules/node_groups
Downloading terraform-aws-modules/vpc/aws 3.2.0 for vpc...
- vpc in .terraform/modules/vpc
Initializing the backend...
Initializing provider plugins...
- Reusing previous version of hashicorp/aws from the dependency lock file
- Reusing previous version of hashicorp/kubernetes from the dependency lock file
^[[F- Reusing previous version of hashicorp/cloudinit from the dependency lock file
- Reusing previous version of terraform-aws-modules/http from the dependency lock file
- Reusing previous version of hashicorp/random from the dependency lock file
- Reusing previous version of hashicorp/local from the dependency lock file
- Reusing previous version of hashicorp/null from the dependency lock file
- Installing hashicorp/kubernetes v2.4.1...
- Installed hashicorp/kubernetes v2.4.1 (signed by HashiCorp)
- Installing hashicorp/cloudinit v2.2.0...
- Installed hashicorp/cloudinit v2.2.0 (signed by HashiCorp)
- Installing terraform-aws-modules/http v2.4.1...
- Installed terraform-aws-modules/http v2.4.1 (self-signed, key ID B2C1C0641B6B0EB7)
- Installing hashicorp/random v3.1.0...
- Installed hashicorp/random v3.1.0 (signed by HashiCorp)
- Installing hashicorp/local v2.1.0...
- Installed hashicorp/local v2.1.0 (signed by HashiCorp)
- Installing hashicorp/null v3.1.0...
- Installed hashicorp/null v3.1.0 (signed by HashiCorp)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/aws:
│ locked provider registry.terraform.io/hashicorp/aws 3.53.0 does not match
│ configured version constraint >= 3.15.0, >= 3.20.0, >= 3.40.0, >= 3.56.0;
│ must use terraform init -upgrade to allow selection of new versions
╵
[dylan@dylantaylor-precision learn-terraform-provision-eks-cluster]$ terraform init -upgrade
Upgrading modules...
Downloading terraform-aws-modules/eks/aws 17.22.0 for eks...
- eks in .terraform/modules/eks
- eks.fargate in .terraform/modules/eks/modules/fargate
- eks.node_groups in .terraform/modules/eks/modules/node_groups
Downloading terraform-aws-modules/vpc/aws 3.2.0 for vpc...
- vpc in .terraform/modules/vpc
Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/aws versions matching ">= 3.15.0, >= 3.20.0, >= 3.40.0, >= 3.56.0"...
- Finding hashicorp/random versions matching "3.1.0"...
- Finding hashicorp/cloudinit versions matching ">= 2.0.0"...
- Finding terraform-aws-modules/http versions matching ">= 2.4.1"...
- Finding hashicorp/local versions matching ">= 1.4.0, 2.1.0"...
- Finding hashicorp/null versions matching "3.1.0"...
- Finding hashicorp/kubernetes versions matching ">= 1.11.1, >= 2.0.1"...
- Installing hashicorp/cloudinit v2.2.0...
- Installed hashicorp/cloudinit v2.2.0 (signed by HashiCorp)
- Installing terraform-aws-modules/http v2.4.1...
- Installed terraform-aws-modules/http v2.4.1 (self-signed, key ID B2C1C0641B6B0EB7)
- Installing hashicorp/local v2.1.0...
- Installed hashicorp/local v2.1.0 (signed by HashiCorp)
- Installing hashicorp/null v3.1.0...
- Installed hashicorp/null v3.1.0 (signed by HashiCorp)
- Installing hashicorp/kubernetes v2.6.1...
- Installed hashicorp/kubernetes v2.6.1 (signed by HashiCorp)
- Installing hashicorp/aws v3.63.0...
- Installed hashicorp/aws v3.63.0 (signed by HashiCorp)
- Installing hashicorp/random v3.1.0...
- Installed hashicorp/random v3.1.0 (signed by HashiCorp)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
Terraform has made some changes to the provider dependency selections recorded
in the .terraform.lock.hcl file. Review those changes and commit them to your
version control system if they represent changes you intended to make.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
from learn-terraform-provision-eks-cluster.
Related Issues (20)
- Local Zones can cause terraform apply to fail HOT 1
- AWS EKS managed security group doubt HOT 1
- Amazon EBS CSI Driver status Degraded
- Organisation error when doing terraform init HOT 1
- Unsuported argument subnets: adapt sample code to module eks version >= 18.0 HOT 2
- Error creating EIP: AddressLimitExceeded: The maximum number of addresses has been reached. HOT 2
- EKS Module does not allow clean destroy (dependency violation) HOT 9
- 'NoneType' object is not iterable while trying to update-kubeconfig HOT 2
- Error: Query Returned No Results (aws_ami) HOT 3
- init fails with "...hashicorp/aws: the previously-selected version 4.15.1 is no longer available" HOT 1
- kubeconfig is not available HOT 2
- Invalid principal in policy HOT 2
- Library needs updating
- pre_bootstrap_user_data in eks_managed_node_groups is unusable for BOTTLEROCKET and hence containerd cannot be used
- SyncLoadBalancerFailed: Error syncing load balancer: failed to ensure load balancer: Multiple tagged security groups found for instance
- node pools failing to join cluster HOT 1
- `terraform init` broken HOT 1
- Pods running on different nodes but same namespace are not able to reach each other HOT 1
- Why do you use `aws_eks_addon` instead of the eks module parameter? HOT 3
- Error: error reading IAM policy (arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-terraform-provision-eks-cluster.