Skip to content

Commit

Permalink
add output for attachment id
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 20, 2022
1 parent 4a3a5fb commit 256ba8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions vpc-transit-gateway-association/self/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@ module "vpc_tgw_self" {
| <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) |
| <a name="output_route_tables_self"></a> [route\_tables\_self](#output\_route\_tables\_self) | Transit Gateway route tables self (this region) |
| <a name="output_vpc_attachment_id"></a> [vpc\_attachment\_id](#output\_vpc\_attachment\_id) | Transit Gateway VPC Attachment ID for this VPC |
5 changes: 5 additions & 0 deletions vpc-transit-gateway-association/self/associate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "vpc_attachment" {
)
}

output "vpc_attachment_id" {
description = "Transit Gateway VPC Attachment ID for this VPC"
value = aws_ec2_transit_gateway_vpc_attachment.vpc_attachment.id
}

#---
# assocaite this vpc to route table in self (my region, network account)
#---
Expand Down

0 comments on commit 256ba8f

Please sign in to comment.