Skip to content

nziehn/toolbox-templates-aws-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tb-aws-lambda-base

This is a basic project for deploying clean python-based serverless applications.

install

  1. make sure you have serverless running locally
  2. install pip:
    pip install -r requirements.txt

running locally

  1. Scripts can be run directly, as long as PYTHONPATH includes the root directory of the repo
  2. Run it through serverless invoke:
    serverless invoke local --function example --stage=local

deployment

  1. If you want to interact with a VPC, you should run it as a regional lambda

    • Regional lambdas need a NAT gateway to access the internet
  2. Use the following command to deploy:

    SLS_DEBUG=* sls deploy --stage "${BRANCH_NAME}" --git-commit $(git log --pretty=format:'%h' -n 1)
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages