Skip to content

yuklia/serverless-lambda-chaining

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👷 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.

System Design

Alt

Prerequisites

  1. Sign up to https://www.serverless.com/
  2. Go to dashboard and add app 'serverless-lambda-chaining'
  3. 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

Install python package

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

About

serverless framework / aws / sns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages