-
Notifications
You must be signed in to change notification settings - Fork 0
/
provider.tf
68 lines (61 loc) · 1.66 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# use terraform cloud
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.9"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.10"
}
helm = {
source = "hashicorp/helm"
version = ">= 2.4.1"
}
random = {
source = "hashicorp/random"
version = ">= 3.3.2"
}
kubectl = {
source = "gavinbunney/kubectl"
version = ">= 1.14"
}
bcrypt = {
source = "viktorradnai/bcrypt"
version = ">= 0.1.2"
}
}
backend "remote" {
hostname = "app.terraform.io"
organization = "geisslersolutions"
workspaces {
name = "PaaS"
}
}
}
provider "aws" {
region = "us-east-1"
}
provider "helm" {
kubernetes {
host = module.eks.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.this.token
}
}
provider "kubernetes" {
host = module.eks.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.this.token
}
#note: useful when needing to manually apply a k8s resource -food for thought-
provider "kubectl" {
apply_retry_count = 10
host = module.eks.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
load_config_file = false
token = data.aws_eks_cluster_auth.this.token
}
provider "bcrypt" {
}