-
Notifications
You must be signed in to change notification settings - Fork 8
/
_outputs.tf
35 lines (27 loc) · 1.11 KB
/
_outputs.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
output "vpc_id" {
value = module.vpc_main.vpc_id
}
output "vpc_cidr" {
value = var.cidr_block
}
output "subnet_details_id" {
value = length(var.subnet) == 0 ? module.subnet_simple[0].subnet_details_id : module.subnet_advance[0].subnet_details_id
}
output "subnet_details_cidr" {
value = length(var.subnet) == 0 ? module.subnet_simple[0].subnet_details_cidr : module.subnet_advance[0].subnet_details_cidr
}
output "internet_gateway_id" {
value = length(var.subnet) == 0 ? module.subnet_simple[0].internet_gateway_id : module.subnet_advance[0].internet_gateway_id
}
output "route_table_id" {
value = length(var.subnet) == 0 ? module.subnet_simple[0].route_table_id : module.subnet_advance[0].route_table_id
}
output "eip_id" {
value = length(var.subnet) == 0 ? module.subnet_simple[0].route_table_id : module.subnet_advance[0].route_table_id
}
output "subnet_ids" {
value = length(var.subnet) == 0 ? module.subnet_simple[0].subnet_ids : module.subnet_advance[0].subnet_ids
}
output "subnet_cidr" {
value = length(var.subnet) == 0 ? module.subnet_simple[0].subnet_cidr : module.subnet_advance[0].subnet_cidr
}