-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathversions.tf
49 lines (41 loc) · 1.27 KB
/
versions.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
terraform {
required_version = ">= 1.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
helm = {
source = "hashicorp/helm"
version = "~> 2.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.0"
}
}
}
provider "helm" {
kubernetes {
host = module.anyscale_eks_cluster.eks_kubeconfig.endpoint
cluster_ca_certificate = base64decode(module.anyscale_eks_cluster.eks_kubeconfig.cluster_ca_certificate)
# https://registry.terraform.io/providers/hashicorp/helm/latest/docs#exec-plugins
exec {
api_version = "client.authentication.k8s.io/v1beta1"
args = ["eks", "get-token", "--cluster-name", module.anyscale_eks_cluster.eks_cluster_name]
command = "aws"
}
}
}
provider "kubernetes" {
host = module.anyscale_eks_cluster.eks_kubeconfig.endpoint
cluster_ca_certificate = base64decode(module.anyscale_eks_cluster.eks_kubeconfig.cluster_ca_certificate)
exec {
api_version = "client.authentication.k8s.io/v1beta1"
args = ["eks", "get-token", "--cluster-name", module.anyscale_eks_cluster.eks_cluster_name]
command = "aws"
}
}
provider "aws" {
region = var.aws_region
}