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'm attempting to deploy a Python script as a service. This Python script requires libraries which I have built and packaged using an Amazon Linux EC2. I have verified the zip file works if I manually deploy it.
EXPECTATION:
Based on the documentation, this should override the default packaging behavior and instead simply use the deployment-pkg.zip as is, and deploy the deployment-pkg.zip as the end result to my lambda function.
deployment-pkg.zip gets repackaged as python-lambda.zip contents being:
-libdep1\
-libdep2\
-source.py
REALITY:
I inspect the ./serverless folder which contains the deploy package the python-lambda.zip contents are:
-deployment-pkg.zip
-source.py
The overall result is when this package gets deploy, my lambda function complains it cannot find it's dependencies as that deployment package is not correctly structured.
I am running the latest version of serverless 1.26.0
Activity
snurmine commentedon Mar 11, 2019
Tested with master (06c8222), but
serverless packagedidn't generate zip under .serverless.zoo.zip:
pgrzesik commentedon Aug 31, 2021
Closing due to inactivity for over 2 years