mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
fix(vpc): solve subnet route key error (#3902)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user