Why is there a long delay between CREATE_IN_PROGRESS event for a Lambda-backed CloudFormation custom resource and the Lambda function invocation?

0

I am deploying a CloudFormation stack with a number of Lambda-backed custom resources which load data into AWS. These Lambda functions take approximately 7 minutes to execute, and a number of them are run in parallel by having multiple custom resources backed by the same Lambda function. The total time from the first CREATE_IN_PROGRESS event for these resources approximately matches the time it takes for the Lambda function to run, and they run successfully.

There are further custom resources (using different Lambda functions) that run after the previously custom resources are complete. However, we are seeing unusual behaviour for these custom resources, as there is a significant wait from the first CREATE_IN_PROGRESS event to the Lambda function actually being invoked (as seen in the logs for the Lambda function). This was has been from 10 minutes to over an hour, sometimes causing the custom resource to time out without the Lambda function ever being invoked. It appears that the events from CloudFormation which normally trigger the custom resource Lambda are being significantly delayed.

Why might this be?

질문됨 2년 전1151회 조회
1개 답변
1
수락된 답변

Hello,

Based on my understanding on your use-case, this could be related to concurrency limit on Lambda function.

You can refer to Managing Lambda concurrency to understand more about types of concurrency controls available.

Additionally, you can also refer to knowledge center document if wish to request a concurrency limit increase for Lambda function.

I hope above information was useful and help you to resolve the issue.

지원 엔지니어
답변함 2년 전
  • This looks to have been the problem. Thanks for your help.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠