diff --git a/modules/aws/transit_gateway/README.md b/modules/aws/transit_gateway/README.md index af3ba3e9..f7ee4932 100644 --- a/modules/aws/transit_gateway/README.md +++ b/modules/aws/transit_gateway/README.md @@ -28,7 +28,7 @@

Transit Gateway Module

- This module creates a transit gateway for routing between VPCs and other AWS accounts. + This module creates a transit gateway for routing between VPCs and other AWS accounts. See https://aws.amazon.com/transit-gateway/ for more information.
Explore the docs ยป
@@ -136,6 +136,7 @@ No modules. |------|-------------| | [arn](#output\_arn) | The ARN of the transit gateway | | [association\_default\_route\_table\_id](#output\_association\_default\_route\_table\_id) | The ID of the default association route table | +| [bgp\_asn](#output\_bgp\_asn) | The BGP ASN of the transit gateway | | [id](#output\_id) | The ID of the transit gateway | | [propagation\_default\_route\_table\_id](#output\_propagation\_default\_route\_table\_id) | The ID of the default propagation route table | | [transit\_gateway\_cidr\_blocks](#output\_transit\_gateway\_cidr\_blocks) | The CIDR blocks associated with the transit gateway | diff --git a/modules/aws/transit_gateway/outputs.tf b/modules/aws/transit_gateway/outputs.tf index 52840e2a..baf50a2d 100644 --- a/modules/aws/transit_gateway/outputs.tf +++ b/modules/aws/transit_gateway/outputs.tf @@ -8,6 +8,11 @@ output "association_default_route_table_id" { value = aws_ec2_transit_gateway.transit_gateway.association_default_route_table_id } +output "bgp_asn" { + description = "The BGP ASN of the transit gateway" + value = aws_ec2_transit_gateway.transit_gateway.amazon_side_asn +} + output "id" { description = "The ID of the transit gateway" value = aws_ec2_transit_gateway.transit_gateway.id