-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
95 lines (86 loc) · 2.2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
module "main_vpc" {
source = "btower-labz/btlabz-vpc-base/aws"
version = "1.0.0-000"
vpc_name = var.vpc_name
igw_name = var.igw_name
cidr = var.vpc_cidr
rt_name = var.rt_public_name
}
module "public_a" {
source = "btower-labz/btlabz-pub-sn/aws"
version = "1.0.0-000"
vpc_id = module.main_vpc.vpc_id
name = var.public_a_name
az = local.az_a
cidr = var.public_a_cidr
rt_id = module.main_vpc.rt_id
tags = var.tags
}
module "public_b" {
source = "btower-labz/btlabz-pub-sn/aws"
version = "1.0.0-000"
vpc_id = module.main_vpc.vpc_id
name = var.public_b_name
az = local.az_b
cidr = var.public_b_cidr
rt_id = module.main_vpc.rt_id
tags = var.tags
}
module "public_c" {
source = "btower-labz/btlabz-pub-sn/aws"
version = "1.0.0-000"
vpc_id = module.main_vpc.vpc_id
name = var.public_c_name
az = local.az_c
cidr = var.public_c_cidr
rt_id = module.main_vpc.rt_id
tags = var.tags
}
module "private_a" {
source = "btower-labz/btlabz-pri-sn/aws"
version = "1.0.0-000"
vpc_id = module.main_vpc.vpc_id
name = var.private_a_name
az = local.az_a
cidr = var.private_a_cidr
tags = var.tags
}
module "private_b" {
source = "btower-labz/btlabz-pri-sn/aws"
version = "1.0.0-000"
vpc_id = module.main_vpc.vpc_id
name = var.private_b_name
az = local.az_b
cidr = var.private_b_cidr
tags = var.tags
}
module "private_c" {
source = "btower-labz/btlabz-pri-sn/aws"
version = "1.0.0-000"
vpc_id = module.main_vpc.vpc_id
name = var.private_c_name
az = local.az_c
cidr = var.private_c_cidr
tags = var.tags
}
module "nat_a" {
source = "btower-labz/btlabz-nat-base/aws"
version = "1.0.0-000"
subnet_id = module.public_a.subnet_id
name = var.nat_a_name
tags = var.tags
}
module "nat_b" {
source = "btower-labz/btlabz-nat-base/aws"
version = "1.0.0-000"
subnet_id = module.public_b.subnet_id
name = var.nat_b_name
tags = var.tags
}
module "nat_c" {
source = "btower-labz/btlabz-nat-base/aws"
version = "1.0.0-000"
subnet_id = module.public_c.subnet_id
name = var.nat_c_name
tags = var.tags
}