Skip to content

Commit

Permalink
Merge pull request #33765 from b-diggity/fix--add-additional-tgw-rout…
Browse files Browse the repository at this point in the history
…e-filter

fix: add additional tgw route filter 🌽
  • Loading branch information
ewbankkit authored Oct 6, 2023
2 parents a9878c3 + a561ded commit ce40281
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/33765.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_ec2_transit_gateway_route : Fix TGW route search filter to avoid routes being missed when more than 1,000 static routes are in a TGW route table
```
3 changes: 2 additions & 1 deletion internal/service/ec2/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -4600,7 +4600,8 @@ func FindTransitGatewayPrefixListReferenceByTwoPartKey(ctx context.Context, conn
func FindTransitGatewayStaticRoute(ctx context.Context, conn *ec2.EC2, transitGatewayRouteTableID, destination string) (*ec2.TransitGatewayRoute, error) {
input := &ec2.SearchTransitGatewayRoutesInput{
Filters: BuildAttributeFilterList(map[string]string{
"type": ec2.TransitGatewayRouteTypeStatic,
"type": ec2.TransitGatewayRouteTypeStatic,
"route-search.exact-match": destination,
}),
TransitGatewayRouteTableId: aws.String(transitGatewayRouteTableID),
}
Expand Down

0 comments on commit ce40281

Please sign in to comment.