mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 17:58:05 -05:00
DescribeRouteTables reported a route to a deleted NAT gateway as active. Route state for a NAT gateway target is now read from the gateway record in the route table's account and region when routes are described or sent to route table listeners: a gateway that is gone, or not available, reads as blackhole, and the route keeps its destination, origin and gateway ID until it is replaced or deleted. Deleting a NAT gateway writes no route table, so a failed delete or a CreateRoute or ReplaceRoute racing it cannot leave a stored state behind. DeleteRouteTable takes the table lock that an egress-only internet gateway delete holds while it blackholes routes, so that write cannot bring a deleted table back. Signed-off-by: Andre Kurait <AndreKurait@gmail.com> Signed-off-by: Jackson Price <jxnprice@amazon.com> Co-authored-by: Andre Kurait <AndreKurait@gmail.com>