Skip to content

Commit 67fd040

Browse files
committed
Add aws_route resource routing back to the HVN to AWS Transit Gateway Attachment example
1 parent 0beed0c commit 67fd040

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/resources/aws_transit_gateway_attachment.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ resource "hcp_hvn_route" "route" {
7272
resource "aws_ec2_transit_gateway_vpc_attachment_accepter" "example" {
7373
transit_gateway_attachment_id = hcp_aws_transit_gateway_attachment.example.provider_transit_gateway_attachment_id
7474
}
75+
76+
resource "aws_route" "example" {
77+
route_table_id = aws_vpc.example.main_route_table_id
78+
destination_cidr_block = hcp_hvn.main.cidr_block
79+
transit_gateway_id = aws_ec2_transit_gateway_vpc_attachment_accepter.example.id
80+
}
7581
```
7682

7783
<!-- schema generated by tfplugindocs -->

0 commit comments

Comments
 (0)