-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathproviders.tf
More file actions
27 lines (25 loc) · 891 Bytes
/
providers.tf
File metadata and controls
27 lines (25 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
provider "aws" {
region = var.AWS_REGION
}
provider "kubernetes" {
// config_path = "${path.root}/kubeconfig"
// config_context = "aws-${var.CLUSTER_NAME}"
host = aws_eks_cluster.eks-cluster.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.eks-cluster.certificate_authority[0].data)
exec {
api_version = "client.authentication.k8s.io/v1alpha1"
args = ["eks", "get-token", "--cluster-name", local.cluster_name]
command = "aws"
}
}
provider "helm" {
kubernetes {
host = aws_eks_cluster.eks-cluster.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.eks-cluster.certificate_authority[0].data)
exec {
api_version = "client.authentication.k8s.io/v1alpha1"
args = ["eks", "get-token", "--cluster-name", local.cluster_name]
command = "aws"
}
}
}