Skip to content

Commit

Permalink
add output for self and peer attachment ids
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 21, 2025
1 parent bcfc693 commit a48f6aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,3 +466,4 @@
- vpc-transit-gateway-association/self
- add variables:
- enable_tgw_attachment (for firewall tables, to not attach the TGW which is only for attachment)
- add output for self and peer attachment ids
2 changes: 2 additions & 0 deletions vpc-transit-gateway-association/self/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ module "vpc_tgw_self" {
| Name | Description |
|------|-------------|
| <a name="output_gateway_peer"></a> [gateway\_peer](#output\_gateway\_peer) | Transit Gateway peer (other region) |
| <a name="output_gateway_peer_attachment_id"></a> [gateway\_peer\_attachment\_id](#output\_gateway\_peer\_attachment\_id) | Transit Gateway peer (other region) attachment id |
| <a name="output_gateway_self"></a> [gateway\_self](#output\_gateway\_self) | Transit Gateway self (this region) |
| <a name="output_gateway_self_attachment_id"></a> [gateway\_self\_attachment\_id](#output\_gateway\_self\_attachment\_id) | Transit Gateway self (this region) attachment id |
| <a name="output_map_route_tables_peer"></a> [map\_route\_tables\_peer](#output\_map\_route\_tables\_peer) | Transit Gateway route tables map (VRF:id) peer (other region) |
| <a name="output_map_route_tables_self"></a> [map\_route\_tables\_self](#output\_map\_route\_tables\_self) | Transit Gateway route tables map (VRF:id) self (this region) |
| <a name="output_route_tables_peer"></a> [route\_tables\_peer](#output\_route\_tables\_peer) | Transit Gateway route tables peer (other region) |
Expand Down
10 changes: 10 additions & 0 deletions vpc-transit-gateway-association/self/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ output "gateway_peer" {
value = data.aws_ec2_transit_gateway.gateway_peer.id
}

output "gateway_self_attachment_id" {
description = "Transit Gateway self (this region) attachment id"
value = data.aws_ec2_transit_gateway_peering_attachment.attachment_self.id
}

output "gateway_peer_attachment_id" {
description = "Transit Gateway peer (other region) attachment id"
value = data.aws_ec2_transit_gateway_peering_attachment.attachment_peer.id
}

output "route_tables_self" {
description = "Transit Gateway route tables self (this region)"
# value = data.aws_ec2_transit_gateway_route_table.route_tables_self
Expand Down

0 comments on commit a48f6aa

Please sign in to comment.