diff --git a/.changelog/1252.txt b/.changelog/1252.txt new file mode 100644 index 000000000..3385e95f5 --- /dev/null +++ b/.changelog/1252.txt @@ -0,0 +1,3 @@ +```release-note:improvement +Added an `aws_route` resource to the example code for `hcp_aws_transit_gateway_attachment`. +``` diff --git a/docs/resources/aws_transit_gateway_attachment.md b/docs/resources/aws_transit_gateway_attachment.md index 940461bf2..d727f547d 100644 --- a/docs/resources/aws_transit_gateway_attachment.md +++ b/docs/resources/aws_transit_gateway_attachment.md @@ -72,6 +72,12 @@ resource "hcp_hvn_route" "route" { resource "aws_ec2_transit_gateway_vpc_attachment_accepter" "example" { transit_gateway_attachment_id = hcp_aws_transit_gateway_attachment.example.provider_transit_gateway_attachment_id } + +resource "aws_route" "example" { + route_table_id = aws_vpc.example.main_route_table_id + destination_cidr_block = hcp_hvn.main.cidr_block + transit_gateway_id = aws_ec2_transit_gateway_vpc_attachment_accepter.example.id +} ```