terraform-aws-eks-cluster
terraform-aws-eks-cluster copied to clipboard
Update module versions, README, LICENSE, `Go` version. Pin the `kubernetes` provider
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 than2.25.0
since major changes were introduced in2.25.0
that broke theterraform-aws-eks-cluster
module. Thekubernetes
provider was updated to use theterraform-plugin-framework
, which does not support computed lists in theexec
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
/terratest
/terratest