-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
29 lines (27 loc) ยท 958 Bytes
/
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
###### root/main.tf
module "eks" {
source = "./modules/eks"
aws_public_subnet = module.vpc.aws_public_subnet
vpc_id = module.vpc.vpc_id
cluster_name = "module-eks-${random_string.suffix.result}"
endpoint_public_access = true
endpoint_private_access = false
public_access_cidrs = ["0.0.0.0/0"]
node_group_name = "project102"
scaling_desired_size = 1
scaling_max_size = 1
scaling_min_size = 1
instance_types = ["t3.small"]
key_pair = "XXXX"
}
module "vpc" {
source = "./modules/vpc"
tags = "project102"
instance_tenancy = "default"
vpc_cidr = "10.0.0.0/16"
access_ip = "0.0.0.0/0"
public_sn_count = 2
public_cidrs = ["10.0.1.0/24", "10.0.2.0/24"]
map_public_ip_on_launch = true
rt_route_cidr_block = "0.0.0.0/0"
}