DrFaust92 / terraform-kubernetes-ebs-csi-driver

Terraform module which creates Kubernetes EBS CSI controller resources on AWS EKS.
https://registry.terraform.io/modules/DrFaust92/ebs-csi-driver/kubernetes/latest
Other
31 stars 26 forks source link

AWS provider version is pinned to 3.40.0 #55

Closed gopipalamalai closed 3 years ago

gopipalamalai commented 3 years ago

In https://github.com/DrFaust92/terraform-kubernetes-ebs-csi-driver/blob/master/versions.tf#L6 the aws provider version is pinned to 3.40.0.

terraform {
  required_version = ">= 0.12.6"

  required_providers {
    kubernetes = ">= 1.11.4"
    aws        = "~> 3.40.0"
  }
}

In our code we are using the latest provider which is 3.49.0.

aws = {
      source  = "hashicorp/aws"
      version = "> 3.0, < 4.0"
    }

The doc here explicitly says not use ~> https://www.terraform.io/docs/language/providers/requirements.html#best-practices-for-provider-versions.

Could you fix this so that it does not cause errors for others including your module in their root module?

│ 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.49.0 does not match configured version constraint >= 2.23.0, > 3.0.0, ~> 3.40.0, < 4.0.0; must use
│ terraform init -upgrade to allow selection of new versions                     
╵