Commit ebe9861e authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

adding provider config

parent 88b8b379
data "aws_eks_cluster_auth" "auth" {
name = module.k8s.cluster_name
}
data "aws_eks_cluster" "cluster" {
name = module.k8s.cluster_name
}
# configure our provider
provider "kubernetes" {
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority[0].data)
host = data.aws_eks_cluster.cluster.endpoint
token = data.aws_eks_cluster_auth.auth.token
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment