Follow-up of #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 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
Follow-up of #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_policyper theaws_sqs_queue_redrive_policyrule.Possible Solution
Inspect the
redrive_policyof 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
cfn-lint) Python, cfn-lint, and cfn-lint-serverless versions: N/Atflint) Go, tflint versions: Skipping thisN/A