forked from aws-ia/terraform-aws-mendix-private-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproviders.tf
57 lines (51 loc) · 1.3 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
terraform {
backend "s3" {
region = ""
bucket = ""
key = "terraform.tfstate"
dynamodb_table = ""
encrypt = true
}
required_version = ">= 0.14"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.35"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.16.1"
}
helm = {
source = "hashicorp/helm"
version = ">= 2.7.1"
}
random = {
source = "hashicorp/random"
version = ">= 3.4.3"
}
template = {
source = "hashicorp/template"
version = ">= 2.2.0"
}
kubectl = {
source = "gavinbunney/kubectl"
version = ">= 1.14"
}
}
}
provider "aws" {
region = var.aws_region
}
provider "kubernetes" {
host = module.eks_blueprints.eks_cluster_endpoint
cluster_ca_certificate = base64decode(module.eks_blueprints.eks_cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.this.token
}
provider "helm" {
kubernetes {
host = module.eks_blueprints.eks_cluster_endpoint
cluster_ca_certificate = base64decode(module.eks_blueprints.eks_cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.this.token
}
}