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!
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