scala-serverless-api-dynamodb-example
This is the AWS Lambda + API Gateway + DynamoDB project with 2 functions, built and deployed using Serverless framework.
This is based on this Java tutorial, which has been modified to use Scala with the scanamo ORM and JSON4s. The project is meant to give a simple starting point for building up Serverless APIs in Scala.
Usage
-
Set up Serverless Framework and your AWS account as detailed here.
-
Deploy the Lambda
bash-3.2$ git clone https://github.com/gvonness/scala-serverless-api-dynamodb-example.git
bash-3.2$ cd scala-serverless-api-dynamodb-example
bash-3.2$ sbt assembly
bash-3.2$ serverless deploy
-
Hit the HTTP endpoints
-
Destroy the infrastructure
bash-3.2$ serverless remove