awslabs / awslabs/serverless-rules

Recurring SQS Redrive rule on eventbridge DLQ

Open
#153 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
420
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**What were you trying to accomplish?**

Validate an EventBridge component. I got a rule violation that said I needed a RedrivePolicy on my DLQ attached to my Eventbridge's targets.

## Expected Behavior
If a SQS queue is already configured as a DLQ for Eventbridge's target, don't run the rule on the DLQ.

## Current Behavior

## Possible Solution
Same thing as [PR#82](https://github.com/awslabs/serverless-rules/pull/82) but handle DLQ on Eventbridge component.

## Environment

* **Infrastructure as code technology used**:
* **(for `cfn-lint`) Python, cfn-lint, and cfn-lint-serverless versions**: cfn-lint 0.59.0 cfn-lint-serverless 0.3.2
* **(for `tflint`) Go, tflint versions**:
* **Debugging logs**

```
# paste logs here
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing PR#82 and the EventBridge rule implementation, then trace how SQS dead-letter queues are identified for EventBridge targets. Confirm the existing cfn-lint-serverless rule behavior with an EventBridge template containing an SQS DLQ; done means that configured DLQs are excluded from the RedrivePolicy violation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go, python
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.