Skip to content

Starting point for Flask - based lambda for future deployment to AWS

Notifications You must be signed in to change notification settings

darnes/flask-lambda-bootstrap

Repository files navigation

Flask bootstrap template.

To install dependencied

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

to run

$  python run.py

Then navigate to http://localhost:5000/

AWS services

Install aws cli

$ brew install aws

Install SAM

$ sudo pip install aws-sam-cli

Deploying

zappa

$ source venv/bin/activate
$ pip install zappa
$ zappa init 
(venv) $ zappa init
(venv) $ zappa package dev

SAM

as Server less Application Model

sam package --template-file template.yml --output-template-file packaged.yml --s3-bucket proj-input
sam deploy --template-file packaged.yml --stack-name xreport-sam --capabilities CAPABILITY_IAM

About

Starting point for Flask - based lambda for future deployment to AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages