Skip to content

Commit

Permalink
Transit Gateway - added new output bgp_asn (#74)
Browse files Browse the repository at this point in the history
* added new output

* Continuous Integration - terraform fmt and terraform-docs

* added aws URL
  • Loading branch information
zachreborn authored Nov 3, 2024
1 parent 2ad4b1b commit 5da99d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/aws/transit_gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<h3 align="center">Transit Gateway Module</h3>
<p align="center">
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.
<br />
<a href="https://github.com/zachreborn/terraform-modules"><strong>Explore the docs »</strong></a>
<br />
Expand Down Expand Up @@ -136,6 +136,7 @@ No modules.
|------|-------------|
| <a name="output_arn"></a> [arn](#output\_arn) | The ARN of the transit gateway |
| <a name="output_association_default_route_table_id"></a> [association\_default\_route\_table\_id](#output\_association\_default\_route\_table\_id) | The ID of the default association route table |
| <a name="output_bgp_asn"></a> [bgp\_asn](#output\_bgp\_asn) | The BGP ASN of the transit gateway |
| <a name="output_id"></a> [id](#output\_id) | The ID of the transit gateway |
| <a name="output_propagation_default_route_table_id"></a> [propagation\_default\_route\_table\_id](#output\_propagation\_default\_route\_table\_id) | The ID of the default propagation route table |
| <a name="output_transit_gateway_cidr_blocks"></a> [transit\_gateway\_cidr\_blocks](#output\_transit\_gateway\_cidr\_blocks) | The CIDR blocks associated with the transit gateway |
Expand Down
5 changes: 5 additions & 0 deletions modules/aws/transit_gateway/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5da99d6

Please sign in to comment.