fix(vpc): solve subnet route key error (#3902)

This commit is contained in:
Sergio Garcia
2024-04-30 13:09:31 +02:00
committed by GitHub
parent b54ecb50bf
commit 1622d0aa35
@@ -345,7 +345,8 @@ class VPC(AWSService):
if (
"GatewayId" in route
and "igw" in route["GatewayId"]
and route["DestinationCidrBlock"] == "0.0.0.0/0"
and route.get("DestinationCidrBlock", "")
== "0.0.0.0/0"
):
# If the route table has a default route to an internet gateway, the subnet is public
public = True