-
Notifications
You must be signed in to change notification settings - Fork 45
/
provider.tf
53 lines (49 loc) · 1.26 KB
/
provider.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
50
51
52
53
terraform {
required_providers {
aws = {
source = "aws"
version = ">= 5.0"
}
helm = {
source = "helm"
version = "~> 2.0"
}
kubernetes = {
source = "kubernetes"
version = "~> 2.0"
}
kubectl = {
source = "gavinbunney/kubectl"
version = "~> 1.14"
}
tls = {
source = "tls"
version = "~> 3.1.0"
}
}
}
provider "aws" {
region = var.aws_region
insecure = true
default_tags {
tags = var.default_tags
}
}
provider "helm" {
kubernetes {
host = aws_eks_cluster.main.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.main.certificate_authority.0.data)
token = data.aws_eks_cluster_auth.default.token
}
}
provider "kubernetes" {
host = aws_eks_cluster.main.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.main.certificate_authority.0.data)
token = data.aws_eks_cluster_auth.default.token
}
provider "kubectl" {
host = aws_eks_cluster.main.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.main.certificate_authority.0.data)
token = data.aws_eks_cluster_auth.default.token
apply_retry_count = 15
}