Hi dear community,
We're currently facing a problem with deploying lambda function's artefacts together with 3rd party libraries.
Could you please clarify, how to resolve and deploy properly these dependencies using aws-sam-deploy pipe?
* we use the last version of pipe.
variables in BBPL file:
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID_STAGE
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY_STAGE
AWS_DEFAULT_REGION: 'eu-central-1'
S3_BUCKET: 'templates-stage'
STACK_NAME: 'stackname'
SAM_TEMPLATE: 'template.yaml'
CAPABILITIES: ['CAPABILITY_IAM', 'CAPABILITY_AUTO_EXPAND']
DEBUG: 'true'
To reproduce:
add requirements.txt file( with e.g. psycopg2-binary) to your lambda source code. Deploy. In S3 bucket you'll see that the file uploaded to S3 bucket is too small and Lambda is not working.
Best Regards,
Alexey