From 0beed0c41ef2ae931f2ece5b20a23b07edaa1d66 Mon Sep 17 00:00:00 2001 From: Nick Philbrook <42616679+nphilbrook@users.noreply.github.com> Date: Wed, 9 Apr 2025 14:56:00 -0400 Subject: [PATCH 1/3] Created branch nphilbrook_aws_tgw_attachment_example_route from main From 67fd0400d80100897f084750000e441c1d3fd624 Mon Sep 17 00:00:00 2001 From: Nick Philbrook <42616679+nphilbrook@users.noreply.github.com> Date: Wed, 9 Apr 2025 15:11:18 -0400 Subject: [PATCH 2/3] Add aws_route resource routing back to the HVN to AWS Transit Gateway Attachment example --- docs/resources/aws_transit_gateway_attachment.md | 6 ++++++ 1 file changed, 6 insertions(+) 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 +} ``` From 3386e241f8e465f7f47661b1009a5651efa7d112 Mon Sep 17 00:00:00 2001 From: Nick Philbrook <42616679+nphilbrook@users.noreply.github.com> Date: Wed, 9 Apr 2025 15:19:02 -0400 Subject: [PATCH 3/3] Added Changelog entry --- .changelog/1252.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/1252.txt 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`. +```