Skip to content

An example Express + MySQL project for docker-aws-sam-local.

Notifications You must be signed in to change notification settings

JontyC/SAM-Docker-MySQL

Repository files navigation

SAM-Docker-MySQL

An example Express + MySQL project for Amazon AWS SAM Local. Makes use of docker-aws-sam-local.

What is AWS SAM Local?

Amazon AWS SAM Local is a tool for local development and testing of Serverless applications. It can be used to test functions locally, start a local API Gateway from a SAM template, validate a SAM template, and generate sample payloads for various event sources.

How to use this repo?

$ bin/development

This will create a deployment package of the current directory for use with the SAM Local Lambda function and spin up Docker using docker-compose.

Browsing to http://localhost:3000/ will show a status endpoint with the configuration listed. /database shows the connectivity to the database.

License