Repository: prowler-cloud/prowler
Issue category: Bug Report

Issue:
rds_service.py error
### Steps to Reproduce

1. Running prowler aws -log-level ERROR
2. AWS
3. Single Account

### Expected behavior

To execute without throwing the error

### Actual Result with Screenshots or Logs

2024-11-28 10:20:18,851 [File: rds_service.py:458] [Module: rds_service] ERROR: eu-west-2 -- KeyError[449]: 'SourceType'

We have an postgress RDS 16.3 instance in eu-west-2 and the script is throwing this error

### How did you install Prowler?

From pip package (pip install prowler)

### Environment Resource

2. ECS Fargate task

### OS used

3. Alpine Linux

### Prowler version

4.6.0

### Pip version

na

### Context

_No response_


Hints:

Patch:
diff --git a/prowler/providers/aws/services/rds/rds_service.py b/prowler/providers/aws/services/rds/rds_service.py
index b4dd5d66ce9..60d24b1cb1b 100644
--- a/prowler/providers/aws/services/rds/rds_service.py
+++ b/prowler/providers/aws/services/rds/rds_service.py
@@ -446,7 +446,7 @@ def _describe_db_event_subscriptions(self, regional_client):
                                     arn=arn,
                                     sns_topic_arn=event["SnsTopicArn"],
                                     status=event["Status"],
-                                    source_type=event["SourceType"],
+                                    source_type=event.get("SourceType", ""),
                                     source_id=event.get("SourceIdsList", []),
                                     event_list=event.get("EventCategoriesList", []),
                                     enabled=event["Enabled"],


Test patch: