How do I troubleshoot Lambda function provisioned concurrency failure issues?

3 minute read
0

I configured provisioned concurrency for my AWS Lambda function, but it failed to deploy and I received a "FUNCTION_ERROR_INIT_FAILURE" error.

Short description

After you set up provisioned concurrency for your Lambda function, the following issues might cause your deployment to fail:

  • You invoked the Lambda function with the $LATEST version instead of the function version with configured provisioned concurrency.
  • You're using all provisioned concurrency, so Lambda uses standard concurrency to invoke your function and you experience cold starts.
  • You're using reserved concurrency.
  • There are missing or mismatched environment variables or issues with the Lambda function code.
  • Lambda can't access or invoke the function code because of a lack of permissions. 

Resolution

To troubleshoot issues with provisioned concurrency, take the following actions:

If the preceding troubleshooting steps don't resolve your issue, then contact AWS Support. Include the following information in your support case:

  • The Lambda function's ARN.
  • The workflow on the Lambda function setup with all services.
  • Details about whether the issue is intermittent or continuous.
  • Complete CloudWatch logs in .txt file format from when the issue occurred.
    Note: The logs help identify Lambda function errors that include timeout issues, init durations, and permissions issues.
  • The timestamp of the issue with the time zone or timestamp in UTC.

Note: For security and privacy reasons, AWS Support doesn't have access to customer CloudWatch logs.

For more troubleshooting information, see Lambda: cold starts with new versions.

Note: You incur additional costs when you use provisioned concurrency. To keep provisioned concurrency costs low, it's a best practice to schedule provisioned concurrency usage for your organization.

Related information

Troubleshoot invocation issues in Lambda

AWS OFFICIAL
AWS OFFICIALUpdated 3 months ago