You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!')
}
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: