awslabs / awslabs/serverless-rules
Recurring SQS Redrive rule for Terraform
- Dominant language
- Go
- Stars
- 420
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Follow-up of https://github.com/awslabs/serverless-rules/issues/79 but for terraform
**What were you trying to accomplish?**
## Expected Behavior
If an SQS queue is a DLQ for another queue, it should not require a `redrive_policy`.
## Current Behavior
Right now, all SQS queues require a `redrive_policy` per the [`aws_sqs_queue_redrive_policy`](https://awslabs.github.io/serverless-rules/rules/sqs/redrive_policy.html) rule.
## Possible Solution
Inspect the `redrive_policy` of all queues and infer is a queue is a DLQ or not, then ignore the rule for those queues.
## Steps to Reproduce (for bugs)
_Skipping this_
## Environment
* **Infrastructure as code technology used**: Terraform
* **(for `cfn-lint`) Python, cfn-lint, and cfn-lint-serverless versions**: _N/A_
* **(for `tflint`) Go, tflint versions**: _Skipping this_
* **Debugging logs**
_N/A_
Contributor guide
Assessment
This issue has not been assessed yet.