Hi,
I created a lambda python function with a lambda runtime environment set to python 3.6. I made a python 3.6 layer where I installed invokust and added it to the lambda function.
The code in my lambda function is:
import json
from invokust.aws_lambda import get_lambda_runtime_info
def lambda_handler(event, context):
# TODO implement
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}
When I execute it, I get the following error:
Response
{
"errorMessage": "module initialization error"
}
If I remove the invokust import, everything works fine. Does anybody have an idea how to fix this?
The command used to create the zip package for the lambda layer is: pip3 install --platform manylinux2014_x86_64 --target=python --implementation cp --python 3.6 --only-binary=:all: --upgrade invokust
After that, I zipped the python folder and uploaded it as a lambda layer.
Hi,
I created a lambda python function with a lambda runtime environment set to python 3.6. I made a python 3.6 layer where I installed invokust and added it to the lambda function.
The code in my lambda function is:
import json
from invokust.aws_lambda import get_lambda_runtime_info
def lambda_handler(event, context):
# TODO implement
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}
When I execute it, I get the following error:
Response
{
"errorMessage": "module initialization error"
}
If I remove the invokust import, everything works fine. Does anybody have an idea how to fix this?
The command used to create the zip package for the lambda layer is: pip3 install --platform manylinux2014_x86_64 --target=python --implementation cp --python 3.6 --only-binary=:all: --upgrade invokust
After that, I zipped the python folder and uploaded it as a lambda layer.