Re-Enable lambda recursive invocation detection

0

Recently we recieved an alert from aws mentioning about the new feature of recursive invocation detection, and added that a couple of lambda functions had recursive invocations in the last 3 months. To avoid the service disruption, they have disabled this feature for my account. As per the email i need to contact customer support to enable this again.

How do I enable this feature as i don't have any support plans to contact and raise a customer support case?

asked 10 months ago609 views
1 Answer
0

Hi - Unintentional recursive loops can result in unexpected charges being billed to your AWS account. Loops can also cause Lambda to scale and use all of your account's available concurrency. To help reduce the impact of unintentional loops, Lambda can detect certain types of recursive loops shortly after they occur. When Lambda detects a recursive loop, it stops your function being invoked and notifies you.

To prevent a reoccurrence of a recursive loop that Lambda has broken, do the following:

  • Reduce your function's available concurrency to zero, which throttles all future invocations.
  • Remove or disable the trigger or event source mapping that's invoking your function.
  • Identify and fix code defects that write events back to the AWS resource that's invoking your function. A common source of defects occurs when you use variables to define a function's event source and target. Check that you're not using the same value for both variables.

Additionally, if the event source for your Lambda function is an Amazon SQS queue, then consider configuring a dead-letter queue on the source queue.

If you have a Basic Support plan and require one-on-one technical support, you can upgrade your Support plan. For more information, see How do I change my AWS Support plan?

profile pictureAWS
EXPERT
answered 10 months ago
  • Thanks, right now this feature of loop detection is disabled. Is there any way i can request to re-enable this without upgrading my support plan?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions