Open nmoutschen opened 3 years ago
Follow-up of https://github.com/awslabs/serverless-rules/issues/79 but for terraform
What were you trying to accomplish?
If an SQS queue is a DLQ for another queue, it should not require a redrive_policy.
redrive_policy
Right now, all SQS queues require a redrive_policy per the aws_sqs_queue_redrive_policy rule.
aws_sqs_queue_redrive_policy
Inspect the redrive_policy of all queues and infer is a queue is a DLQ or not, then ignore the rule for those queues.
Skipping this
cfn-lint
tflint
N/A
Won't fix for now as TFLint cannot cross-reference resources based on dynamic values. See https://github.com/awslabs/serverless-rules/issues/107
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 theaws_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
cfn-lint
) Python, cfn-lint, and cfn-lint-serverless versions: N/Atflint
) Go, tflint versions: Skipping thisN/A