generated from aws-ia/terraform-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathproviders.tf
49 lines (43 loc) · 1.11 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
terraform {
backend "s3" {
region = ""
bucket = ""
key = "terraform.tfstate"
dynamodb_table = ""
encrypt = true
}
required_version = ">= 0.14"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.46"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.29.0"
}
helm = {
source = "hashicorp/helm"
version = ">= 2.13"
}
random = {
source = "hashicorp/random"
version = ">= 3.6"
}
}
}
provider "aws" {
region = var.aws_region
}
provider "kubernetes" {
host = module.eks_blueprints.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks_blueprints.cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.this.token
}
provider "helm" {
kubernetes {
host = module.eks_blueprints.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks_blueprints.cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.this.token
}
}