Closed ElfoLiNk closed 1 year ago
Would be good to support something like the kubernetes provider does for aws eks config:
host = module.eks.cluster_endpoint cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) exec { api_version = "client.authentication.k8s.io/v1beta1" command = "aws" args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] }
Like helm provider is doing:
provider "helm" { kubernetes { host = var.cluster_endpoint cluster_ca_certificate = base64decode(var.cluster_ca_cert) exec { api_version = "client.authentication.k8s.io/v1beta1" args = ["eks", "get-token", "--cluster-name", var.cluster_name] command = "aws" } } }
I don't actively maintain this provider anymore, nor do I have the proper AWS environment to test this. I will accept a PR if you're so inclined.
Would be good to support something like the kubernetes provider does for aws eks config:
Like helm provider is doing: