AWS Lambda now supports function-level configuration for recursive loop detection
AWS Lambda now supports function-level configuration which allows you to disable or enable recursive loop detection. Lambda recursive loop detection, which is enabled by default, is a preventative guardrail that automatically detects and stops recursive invocations between Lambda and other supported services, preventing runaway workloads.
Before, customers running intentionally recursive patterns could only turn off recursive loop detection on a per-account basis through AWS Support. Now customers can disable or enable recursive loop detection on a per-function basis, allowing them to run their intentionally recursive workflows while protecting the remaining functions in their account from runaway workloads caused by unintended recursive invocations.
These new API actions are available in all AWS Regions where recursive loop detection is supported. You can set your function’s recursion configuration programmatically, as a parameter in your CloudFormation template, or within the AWS Lambda Console.
To learn more about Lambda’s new recursive loop detection API actions, please refer to Lambda’s API reference or the launch blog post.