Skip to content
New issue

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

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

Already on GitHub? # to your account

Kubernetes provider 2.0 breaks terraform-aws-eks-cluster v0.29.1 - v0.30.2 #96

Closed
Nuru opened this issue Jan 22, 2021 · 1 comment
Closed
Labels
bug 🐛 An issue with the system

Comments

@Nuru
Copy link
Contributor

Nuru commented Jan 22, 2021

Describe the Bug

Hashicorp released Kubernetes provider 2.0.0 which has breaking changes and breaks terraform-aws-eks-cluster v0.29.1 through and including v0.30.2. (While earlier versions are not compatible either, they have appropriate version pinning for the Kubernetes provider.)

Steps to Reproduce

$ terraform plan
...
Error: Unsupported argument

  on .terraform/modules/eks_cluster/auth.tf line 81, in provider "kubernetes":
  81:   load_config_file       = var.kubernetes_load_config_file

An argument named "load_config_file" is not expected here.
@Nuru Nuru added the bug 🐛 An issue with the system label Jan 22, 2021
@Nuru
Copy link
Contributor Author

Nuru commented Jan 22, 2021

There are 3 ways to resolve this issue:

  • You can pin the Kubernetes provider version in your Terraform root module. In Terraform 0.12.26 or later the syntax is
terraform {
  required_version = ">= 0.12.26"

  required_providers {
    kubernetes = {
      source  = "hashicorp/kubernetes"
      version = "~> 1.11"
    }
  }
}
  • You can switch to version 0.31.0 or later of this module (terraform-aws-eks-cluster). Version 0.31.0 pins the kubernetes provider to avoid the breaking change.
  • When one is published, you can switch to a later version of this module (terraform-aws-eks-cluster) which works with kubernetes provider 2.0.0.

The first 2 options are available now. No ETA on the final option. May be supplied by #93

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant