forked from KubeRocketCI/terraform-aws-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproviders.tf
39 lines (36 loc) · 836 Bytes
/
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
terraform {
required_version = "1.2.9"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.30.0"
}
local = {
source = "hashicorp/local"
version = ">= 2.2.3"
}
null = {
source = "hashicorp/null"
version = ">= 3.1.1"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.12.1"
}
template = {
source = "hashicorp/template"
version = ">= 2.2.0"
}
}
}
provider "aws" {
region = var.region
assume_role {
role_arn = var.role_arn
}
}
provider "kubernetes" {
host = data.aws_eks_cluster.cluster.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority.0.data)
token = data.aws_eks_cluster_auth.cluster.token
}