Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add rule LambdaEventSourceSQSVisibilityTimeout #1813

Merged
merged 9 commits into from
Nov 1, 2024

Conversation

robert-hanuschke
Copy link
Contributor

Fixes #1798

New rule for "SQS queue visibility timeout of Lambda Event Source Mapping is at least 6 times timeout of Lambda function". Helps prevent configurations resulting in duplicate processing of queue items due to visibility timeout being too low

Recommendation in the SQS docs:

To allow your function time to process each batch of records, set the source queue's visibility timeout to at least six times the timeout that you configure on your function. The extra time allows for Lambda to retry if your function is throttled while processing a previous batch.

@robert-hanuschke robert-hanuschke changed the title add rule LambdaEventSourceSQSVisibilityTimeout feat: add rule LambdaEventSourceSQSVisibilityTimeout Oct 21, 2024
robert-hanuschke and others added 2 commits October 29, 2024 16:49
Co-authored-by: Arun Donti <dontirun@gmail.com>
@mergify mergify bot merged commit bfa2820 into cdklabs:main Nov 1, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: rule checking for SQS visbility timeout being correctly sized in a Lambda EventSourceMapping
2 participants