Closed parisnakitakejser closed 2 years ago
Hi @parisnakitakejser !
It seems, LocalStack is using the local
executor, which does not support lambda layers.
You can find information about different executor modes here: https://docs.localstack.cloud/localstack/lambda-executors/
Please try setting LAMBDA_EXECUTOR=docker
and, if this is currently not the case, mount the docker socket into the LocalStack container, so it may spawn the containers for lambda execution.
Perfect, it's working mount the socket + change the lambda_executor are working, feedback in the awslocal wrapper to sending better error handling return, don't know about this ticket should be closed or open for that?
Hi @parisnakitakejser — Closing this for now. Can you please send this feedback on our Discussion Pages to help us better prioritise it: https://discuss.localstack.cloud/
Is there an existing issue for this?
Current Behavior
When I create a lambda function there should use layers eg. Redis which returns back with an error.
Have just downloaded a working layer from my AWS account as zip and trying to use it for LocalStack testing
Expected Behavior
I expect when i have created my Lambda Layers from a zip file, my role and then my Lambda function its should be created so i can start invoke my Lambda function.
How are you starting LocalStack?
With a
docker run
commandSteps To Reproduce
AWS CLI commands
lambda-test.zip -> lambda_handler.py:
redis.zip
Test-Role-Trust-Policy.json
Environment
Anything else?
No response