-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovider.tf
More file actions
45 lines (40 loc) · 1.12 KB
/
provider.tf
File metadata and controls
45 lines (40 loc) · 1.12 KB
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
provider "aws" {
region = "us-east-1"
}
provider "helm" {
kubernetes {
host = data.aws_eks_cluster.eks.endpoint
# client_certificate = base64decode(data.aws_eks_cluster_auth.eks.client_certificate)
# client_key = base64decode(data.aws_eks_cluster_auth.eks.client_key)
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks.certificate_authority.0.data)
token = data.aws_eks_cluster_auth.eks.token
}
}
provider "kubernetes" {
host = data.aws_eks_cluster.eks.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks.certificate_authority.0.data)
token = data.aws_eks_cluster_auth.eks.token
}
provider "github" {
organization = "cis1880"
}
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
helm = {
source = "hashicorp/helm"
version = "~> 2.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.18.1"
}
github = {
source = "hashicorp/github"
version = "~> 4.1"
}
}
}