-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproviders.tf
33 lines (29 loc) · 959 Bytes
/
providers.tf
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
28
29
30
31
32
33
provider "aws" {
region = var.region
default_tags {
tags = {
"provisioner" = "terraform"
"project" = "openmetadata"
}
}
}
provider "kubernetes" {
host = aws_eks_cluster.openmetadata.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.openmetadata.certificate_authority[0].data)
exec {
api_version = "client.authentication.k8s.io/v1beta1"
args = ["eks", "get-token", "--cluster-name", var.eks_cluster_name, "--region", var.region]
command = "aws"
}
}
provider "helm" {
kubernetes {
host = aws_eks_cluster.openmetadata.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.openmetadata.certificate_authority[0].data)
exec {
api_version = "client.authentication.k8s.io/v1beta1"
args = ["eks", "get-token", "--cluster-name", var.eks_cluster_name, "--region", var.region]
command = "aws"
}
}
}