-
Notifications
You must be signed in to change notification settings - Fork 20
/
outputs.tf
35 lines (29 loc) · 1.02 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
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0 */
# --- single-account/outputs.tf ---
output "vpcs" {
description = "VPCs created."
value = {
spokes = { for k, v in module.spoke_vpcs : k => v.vpc_attributes.id }
inspection = module.hubspoke.central_vpcs["inspection"].vpc_attributes.id
}
}
output "transit_gateway_id" {
description = "AWS Transit Gateway ID."
value = module.hubspoke.transit_gateway.id
}
output "transit_gateway_route_tables" {
description = "Transit Gateway Route Table."
value = {
inspection = module.hubspoke.transit_gateway_route_tables.central_vpcs.inspection.id
spoke = module.hubspoke.transit_gateway_route_tables.spoke_vpcs.spokes.id
}
}
output "instances" {
description = "EC2 instances created."
value = { for k, v in module.compute : k => v.ec2_instances.*.id }
}
output "network_firewall" {
description = "AWS Network Firewall ID."
value = module.hubspoke.aws_network_firewall.id
}