-
Notifications
You must be signed in to change notification settings - Fork 23
/
main.tf
37 lines (32 loc) · 1.06 KB
/
main.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
locals {
tags = {
environment = var.environment
project = var.project
}
}
data aws_eks_cluster cluster {
name = module.kubernetes.cluster_name
}
data aws_eks_cluster_auth cluster {
name = module.kubernetes.cluster_name
}
module network {
source = "git::https://github.com/provectus/swiss-army-kube.git//modules/network?ref=feature/argocd"
availability_zones = var.availability_zones
environment = var.environment
project = var.project
cluster_name = var.cluster_name
}
module kubernetes {
source = "git::https://github.com/provectus/swiss-army-kube.git//modules/kubernetes?ref=feature/argocd"
availability_zones = var.availability_zones
environment = var.environment
project = var.project
cluster_name = var.cluster_name
cluster_version = "1.15"
vpc_id = module.network.vpc_id
subnets = module.network.private_subnets
admin_arns = var.admin_arns
spot_max_cluster_size = 5
on_demand_common_max_cluster_size = 5
}