AWS Lambda configuration error

This error occurs when the Lambda function is not able to initialise and the execution halts before reaching the handler function.

Dashbird continuously monitors and analyses your serverless applications to ensure reliability, cost and performance optimisation and alignment with the Well Architected Framework.

Product Features Start Free Trial
Type: LOG EVENT
Severity: CRITICAL
Error message: 
*Handler '*' missing on module ||
*Unable to import module '*': Error ||
*module initialization error: 

Why do I see this?

One of your functions can’t initialize, and the execution halts before reaching the handler function.

What does this mean?

Usually, this is caused by an issue in the require or include statements of the code. 

How do I fix AWS Lambda configuration error?

You should look out for typos or inconsistencies in your project’s file structure.

Below are solutions and discussions for different variations of this problem.


For a detailed read on why this happens and how to solve it step by step, read our Debugging with Dashbird: Lambda Configuration Error article.


This rule resolution is part of the Dashbird Serverless Well Architected Reports tool for AWS. Dashbird features a collection of rules and checks continuously applied to your infrastructure, surfacing ways to improve it.

Catch errors and inefficiencies in Lambda and learn the best practice rules for AWS Lambda.

Industry leader in serverless monitoring

Dashbird is a monitoring, debugging and intelligence platform designed to help serverless developers build, operate, improve, and scale their modern cloud applications on AWS environment securely and with ease.