Skip to content

JoeStech/lambda-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-api-template

A CDK template for a Docker-based AWS Lambda API.

To use, first build a container to run on Lambda using the root Dockerfile.

Next, fill out the global variables in deploy.py with relevant values, including the ECR repo name where you have stored your Docker image.

In the cdk directory, you may want to change the 'hello' stack name values to something unique to your project.

Edit app_handler.py to include your API logic.

Run deploy.py and have fun with your new serverless API!

Installing build tools

brew install node@20 npm install -g aws-cdk python -m venv venv cd cdk pip install -r requirements.txt curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip ./aws/install

About

A CDK template for a Docker-based AWS Lambda API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published