mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-11 14:04:17 +00:00
Adds an SQS dead-letter queue to the real-time detection target, in both the CloudFormation and Terraform templates, so a delivery failure is auditable instead of silent. EventBridge retries for up to 24 hours and then writes the event to the queue with the error code and attempt count; responses that are never retried land there on the first attempt. EventBridge delivers to a DLQ as a service rather than through the target invoke role, so the queue carries a resource policy granting sqs:SendMessage to events.amazonaws.com, scoped to the rule ARN. The queue uses SQS-managed encryption to avoid granting KMS permissions, and keeps messages for the 14-day maximum. Prowler is granted no access to it.