Test app using AWS API Gateway, AWS Lambda, DynamoDB, serverless framework.
Lambda written in Python.
Build Python REST Api with Flask and serverless framework
Serverless framework guide on AWS Dynamodb
Build NodeJS REST Api with AWS API Gateway and serverless framework
Python API with AWS API Gateway and Lambda
Handle Python packaging in serverless
Using Lambda layers in serverless framework
AWS Lambda layer guide: sample python application
You need to install serverless and set up AWS credentials.
Use a virtual environment. Install packages from requirements.txt
:
pip install -r requirements.txt
Also install the necessary NPM packages:
npm install
To build the python requirements layer, run:
./build_layers.sh
After making changes, deploy with serverless directly:
sls deploy
Monitor via the serverless dashboard.