AWS Lambda now detects and stops recursive loops between Lambda and Amazon S3
Lambda recursive loop detection can now automatically detect and stop recursive loops between AWS Lambda and Amazon Simple Storage Service (Amazon S3). 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 unintended usage and billing from runaway workloads.
Customers commonly use Amazon S3 as an event source to trigger Lambda functions. Customer misconfiguration or code defect can cause processed events to be sent back to the same Amazon S3 bucket that invoked the Lambda function, causing unintended recursive loops. Now, Lambda will automatically detect and stop such recursive loops and send customers an AWS Health Dashboard notification with troubleshooting steps.
S3 support for recursive loop detection is available in all regions where Lambda recursive loop detection is available. If your function uses intentional recursive loops, you can use the PutFunctionRecursionConfig API to turn off recursive loop detection.
To learn more about Lambda recursive loop detection, please refer to Lambda documentation.