/aws-lambda-scala-demo

Scala RESTful Microservice demo using AWS Lambda and AWS API Gateway

Primary LanguageScalaThe UnlicenseUnlicense

aws-lambda-scala-demo

Scala RESTful Microservice demo using AWS Lambda and AWS API Gateway

Original article here

Usage

  1. sbt compile assembly => a fat .jar in target\scala-2.11
  2. Create an AWS Lambda function from the AWS web UI; upload the .jar above as zip source.
  3. Add a RESTful API to it using AWS API Gateway.
  4. Request payload sample:
  { "firstName": "Ketcho", "lastName": "Metcho" }

P.S. JSON is (de)serialized using Jackson.