Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ To attach access management tags to resources in this module, you need the follo
|------|-------------|
| <a name="output_cidr_blocks"></a> [cidr\_blocks](#output\_cidr\_blocks) | List of CIDR blocks present in VPC stack |
| <a name="output_custom_resolver_hub"></a> [custom\_resolver\_hub](#output\_custom\_resolver\_hub) | The custom resolver created for the hub vpc. Only set if enable\_hub is set and skip\_custom\_resolver\_hub\_creation is false. |
| <a name="output_default_routing_table"></a> [default\_routing\_table](#output\_default\_routing\_table) | The default routing table ID and name that is created along with the VPC. |
| <a name="output_dns_custom_resolver_id"></a> [dns\_custom\_resolver\_id](#output\_dns\_custom\_resolver\_id) | The ID of the DNS Custom Resolver. |
| <a name="output_dns_endpoint_gateways_by_crn"></a> [dns\_endpoint\_gateways\_by\_crn](#output\_dns\_endpoint\_gateways\_by\_crn) | The list of VPEs that are made available for DNS resolution in the created Spoke VPC. Only set if enable\_hub is false and enable\_hub\_vpc\_id OR enable\_hub\_vpc\_crn are true. |
| <a name="output_dns_endpoint_gateways_by_id"></a> [dns\_endpoint\_gateways\_by\_id](#output\_dns\_endpoint\_gateways\_by\_id) | The list of VPEs that are made available for DNS resolution in the created Spoke VPC. Only set if enable\_hub is false and enable\_hub\_vpc\_id OR enable\_hub\_vpc\_crn are true. |
Expand All @@ -277,6 +278,8 @@ To attach access management tags to resources in this module, you need the follo
| <a name="output_dns_zone_state"></a> [dns\_zone\_state](#output\_dns\_zone\_state) | The state of the DNS zone. |
| <a name="output_network_acls"></a> [network\_acls](#output\_network\_acls) | List of shortnames and IDs of network ACLs |
| <a name="output_public_gateways"></a> [public\_gateways](#output\_public\_gateways) | Map of public gateways by zone |
| <a name="output_routing_table_ids"></a> [routing\_table\_ids](#output\_routing\_table\_ids) | List of routing table IDs created by this module. |
| <a name="output_routing_table_routes"></a> [routing\_table\_routes](#output\_routing\_table\_routes) | List of routing table routes created by this module. |
| <a name="output_security_group_details"></a> [security\_group\_details](#output\_security\_group\_details) | Details of security group. |
| <a name="output_subnet_detail_list"></a> [subnet\_detail\_list](#output\_subnet\_detail\_list) | A list of subnets containing names, CIDR blocks, and zones. |
| <a name="output_subnet_detail_map"></a> [subnet\_detail\_map](#output\_subnet\_detail\_map) | A map of subnets containing IDs, CIDR blocks, and zones |
Expand Down
40 changes: 40 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,46 @@ output "vpc_data" {
value = data.ibm_is_vpc.vpc
}

##############################################################################
# Routing Tables
##############################################################################

output "default_routing_table" {
description = "The default routing table ID and name that is created along with the VPC."
value = {
routing_table_id = data.ibm_is_vpc.vpc.default_routing_table
routing_table_name = data.ibm_is_vpc.vpc.default_routing_table_name
}
}

output "routing_table_ids" {
description = "List of routing table IDs created by this module."
value = [
for table in ibm_is_vpc_routing_table.route_table :
{
name = table.name
routing_table_id = table.routing_table
}
]
}

output "routing_table_routes" {
description = "List of routing table routes created by this module."
value = [
for route in ibm_is_vpc_routing_table_route.routing_table_routes :
{
name = route.name
routing_table_id = route.routing_table
destination = route.destination
action = route.action
next_hop = route.next_hop
zone = route.zone
}
]
}

##############################################################################

##############################################################################
# Hub and Spoke specific configuration
##############################################################################
Expand Down
19 changes: 19 additions & 0 deletions solutions/fully-configurable/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ output "network_acls" {
value = module.vpc.network_acls
}

##############################################################################
# Routing Tables
##############################################################################

output "default_routing_table" {
description = "The default routing table ID and name that is created along with the VPC."
value = module.vpc.default_routing_table
}

output "routing_table_ids" {
description = "List of routing table IDs created by this module."
value = module.vpc.routing_table_ids
}

output "routing_table_routes" {
description = "List of routing table routes created by this module."
value = module.vpc.routing_table_routes
}

##############################################################################
# Subnet Outputs
##############################################################################
Expand Down