Haskka test failed

This is what error I get any help appreciated
Test Event Name
Test

Response
{
“errorMessage”: “Unable to import module ‘lambda_function’: No module named ‘lambda_function’”,
“errorType”: “Runtime.ImportModuleError”,
“stackTrace”: []
}

Function Logs
START RequestId: a13eb075-73af-48f2-abd7-ccd5037e23f9 Version: $LATEST
[ERROR] Runtime.ImportModuleError: Unable to import module ‘lambda_function’: No module named ‘lambda_function’
Traceback (most recent call last):
END RequestId: a13eb075-73af-48f2-abd7-ccd5037e23f9
REPORT RequestId: a13eb075-73af-48f2-abd7-ccd5037e23f9 Duration: 1.84 ms Billed Duration: 2 ms Memory Size: 128 MB Max Memory Used: 36 MB Init Duration: 112.79 ms

Request ID
a13eb075-73af-48f2-abd7-ccd5037e23f9

START RequestId: cf8668c6-acf2-4e0f-a5ca-55a97bccbbad Version: $LATEST
[ERROR] Runtime.ImportModuleError: Unable to import module ‘lambda_function’: No module named ‘lambda_function’
Traceback (most recent call last):END RequestId: cf8668c6-acf2-4e0f-a5ca-55a97bccbbad
REPORT RequestId: cf8668c6-acf2-4e0f-a5ca-55a97bccbbad Duration: 11.69 ms Billed Duration: 12 ms Memory Size: 128 MB Max Memory Used: 37 MB

I received the same error message and I was wondering if you can share if you fixed it and how?

I am not able to figure this one out.

I found a fix.

  1. go to aws console https://us-east-1.console.aws.amazon.com/lambda/home?region=us-east-1#/functions
  2. open your lambda function
  3. scroll down past the code editor, to Runtime settings, press edit.
  4. change the ‘handler’ to haaska.event_handler
  5. Save

re-test and hopefully it works for you as it did for me!

SCR-20230306-qbzv|690x357