-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
46 lines (40 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
38
39
40
41
42
43
44
45
46
module "eks" {
source = "terraform-aws-modules/eks/aws"
cluster_name = "eks-terraform"
cluster_version = "1.23"
cluster_endpoint_private_access = false
cluster_endpoint_public_access = true
cluster_addons = {
coredns = {
resolve_conflicts = "OVERWRITE"
}
kube-proxy = {}
vpc-cni = {
resolve_conflicts = "OVERWRITE"
}
}
// vpc_id = module.vpc.vpc_id
// subnet_ids = module.vpc.private_subnets
vpc_id = "vpc-0af55e603924ea9e2"
subnet_ids = [ "subnet-0a33480e7684260a7", "subnet-0dae1739caeed8ced", "subnet-0e6b836c30dd7e186" ]
cloudwatch_log_group_retention_in_days = 1
eks_managed_node_groups = {
worker_group = {
name = "default-ng"
min_size = 2
max_size = 10
desired_size = 2
instance_types = ["c5.large"]
capacity_type = "ON_DEMAND"
update_config = {
max_unavailable_percentage = 50
}
labels = {
stage = "dev"
}
tags = {
stage = "dev"
}
}
}
}