AWS Lambda recursive loop detection is now available in all commercial AWS Regions

AWS Lambda Recursive Loop Detection
AWS Lambda recursive loop detection has expanded support to all commercial AWS Regions. This feature, enabled by default, automatically detects and stops recursive invocations between Lambda functions and other supported services, preventing runaway workloads.
When using event sources such as Amazon S3, Amazon SQS, and Amazon SNS to trigger Lambda functions, a misconfiguration or code defect can cause events to be sent back to the same source, causing recursive loops, unintended usage, and unexpected billing. When such a loop is detected, Lambda stops processing the event and sends a notification with troubleshooting steps.
With this expansion, recursive loop detection is now available in all commercial AWS Regions when using a supported SDK version or later. If your function uses intentional recursive loops, you can turn off recursive loop detection using the PutFunctionRecursionConfig API.
What to do
- Ensure your Lambda functions use a supported SDK version.
- If intentional recursive loops are used, disable recursive loop detection with
PutFunctionRecursionConfig. - Review the Lambda documentation for more information.
Source: AWS release notes
If you need further guidance on AWS, our experts are available at AWS@westloop.io. You may also reach us by submitting the Contact Us form.



