terraform-aws-eks-cluster icon indicating copy to clipboard operation
terraform-aws-eks-cluster copied to clipboard

Update module versions, README, LICENSE, `Go` version. Pin the `kubernetes` provider

Open aknysh opened this issue 1 year ago • 2 comments

what

  • Update module versions, README, LICENSE, Go version for tests
  • Pin the kubernetes provider

why

  • Keep up to date

  • Limited the kubernetes provider to versions less than 2.25.0 since major changes were introduced in 2.25.0 that broke the terraform-aws-eks-cluster module. The kubernetes provider was updated to use the terraform-plugin-framework, which does not support computed lists in the exec block:

dynamic "exec" {
  content {
   args = concat(local.exec_profile, ["eks", "get-token", "--cluster-name", try(aws_eks_cluster.default[0].id, "deleted")], local.exec_role)
  }
}

Processing the computed args list throws the error:

Target Type: []struct { Args []basetypes.StringValue "tfsdk:\"args\"" }
Suggested Type: basetypes.ListValue

references

  • https://github.com/hashicorp/terraform-provider-kubernetes/blob/main/CHANGELOG.md
  • https://github.com/hashicorp/terraform-provider-kubernetes/pull/2347
  • https://github.com/hashicorp/terraform-plugin-framework/issues/713

aknysh avatar Jan 05 '24 20:01 aknysh

/terratest

aknysh avatar Jan 05 '24 20:01 aknysh

/terratest

aknysh avatar Jan 05 '24 21:01 aknysh