-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
32 lines (29 loc) · 859 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
30
31
32
provider "aws" {
region = "${var.region}"
}
module "networking" {
source = "./networking"
subnet_name = "${var.subnet_name}"
vpc_name = "${var.vpc_name}"
vpc_cidr = "${var.vpc_cidr}"
cluster_name = "${var.cluster_name}"
node_name = "${var.node_name}"
total_subnets = "${var.total_subnets}"
}
module "eks" {
source = "./eks"
cluster_name = "${var.cluster_name}"
node_name = "${var.node_name}"
cluster_user = "${var.cluster_user}"
vpc_id = "${module.networking.vpc_id}"
subnet_ids = "${module.networking.subnet_ids}"
key_name = "${var.key_name}"
}
module "mongo" {
source = "./mongo"
region = "${var.region}"
vpc_id = "${module.networking.vpc_id}"
subnet_ids = "${module.networking.subnet_ids}"
cidr_block = "${var.vpc_cidr}"
key_name = "${var.key_name}"
}