-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinit.tf
32 lines (29 loc) · 850 Bytes
/
init.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
terraform {
required_version = ">= 0.13.4"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
null = "~> 3.2"
random = "~> 3.4"
template = "~> 2.2"
}
}
provider "aws" {
region = var.region
}
provider "kubernetes" {
host = "${var.domain == "" ? aws_lb.kubeapi.dns_name : "cp.${var.domain}"}:6443"
cluster_ca_certificate = local.k_config.host_cert
client_key = local.k_config.cert_data
client_certificate = local.k_config.user_crt
}
provider "helm" {
kubernetes {
host = "${var.domain == "" ? aws_lb.kubeapi.dns_name : "cp.${var.domain}"}:6443"
cluster_ca_certificate = local.k_config.host_cert
client_key = local.k_config.cert_data
client_certificate = local.k_config.user_crt
}
}