Skip to content

andr81/sls-aws-python-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template for new serverless backend

Helps to start new serverless backend with:

  • python 3.8
  • serverless framework
  • aws

Steps:

  • Clone project
git clone git@github.com:andr81/sls-aws-python-template.git
  • serverless.yml: change project, service, region, aws-account-id
  • Install npm, serverless, docker, python
  • Install python virtual environment
virtualenv venv --python=python3.8
  • Install sls plugins
sls plugin install -n serverless-python-requirements
  • Install python libs
source venv/bin/activate
pip install -r requirements.txt 
  • Deploy
sls deploy
  • Test
curl https://yoururl.execute-api.us-east-1.amazonaws.com/prod/ping
  • Delete .git folder
  • Ready

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published