From 54ed29e08d2e9251354b627b67404309806cb7d5 Mon Sep 17 00:00:00 2001 From: Sergio Garcia <38561120+sergargar@users.noreply.github.com> Date: Tue, 16 May 2023 10:51:43 +0200 Subject: [PATCH] fix(route53): handle empty Records in Zones (#2351) --- prowler/providers/aws/services/route53/route53_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prowler/providers/aws/services/route53/route53_service.py b/prowler/providers/aws/services/route53/route53_service.py index e663229f..c74d38bc 100644 --- a/prowler/providers/aws/services/route53/route53_service.py +++ b/prowler/providers/aws/services/route53/route53_service.py @@ -74,7 +74,9 @@ class Route53: type=record["Type"], records=[ resource_record["Value"] - for resource_record in record["ResourceRecords"] + for resource_record in record.get( + "ResourceRecords", [] + ) ], is_alias=True if "AliasTarget" in record else False, hosted_zone_id=zone_id,