👷 This is a simple example that shows up how to do lambda chaining in python + boto3
Might be used as a skeleton for your task.
- Sign up to https://www.serverless.com/
- Go to dashboard and add app 'serverless-lambda-chaining'
- Deploy service on your local machine (follow instructions in dashboard)
Serverless variables cheetsheet:
Referencing CLI Options
serverless deploy --stage dev
in yml:
${opt:stage,'dev'}
AWS CloudFormation Fn::Join
{ "Fn::Join" : ["", ["arn:aws:sns:${self:provider.region}:", { "Ref" : "AWS::AccountId" }, ":${self:custom.mySnsTopic}" ] ] }
Remove serverless services
serverles remove
pip install numpy
pip freeze > requirements.txt
cat requirements.txt
npm init
npm install --save serverless-python-requirements
# serverless.yml
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: non-linux