From 1622d0aa357a3b991fa6f11af950f7d5487cd813 Mon Sep 17 00:00:00 2001 From: Sergio Garcia <38561120+sergargar@users.noreply.github.com> Date: Tue, 30 Apr 2024 13:09:31 +0200 Subject: [PATCH] fix(vpc): solve subnet route key error (#3902) --- prowler/providers/aws/services/vpc/vpc_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prowler/providers/aws/services/vpc/vpc_service.py b/prowler/providers/aws/services/vpc/vpc_service.py index 1cf7b30eb7..631cec953b 100644 --- a/prowler/providers/aws/services/vpc/vpc_service.py +++ b/prowler/providers/aws/services/vpc/vpc_service.py @@ -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