Setting up a REST API with AWS SAM Lambda, Node.js, MySQL and Swagger tutorial

A step by step guide on how to setup a REST API on Amazon’s AWS Serverless Application Model using Node.js Lambda, a MySQL database with Swagger integration.

This tutorial will run through the following steps in detail leaving you with a live application running in the AWS Lambda service.

  1. Create your AWS account (if you haven’t already)
  2. Setup an RDS MySQL instance
  3. Setup your local development environment with:
    1. Docker
    2. Node
    3. Swagger
  4. Initialise your SAM templates
  5. Write your Lambda functions
  6. Integrate your Swagger into your SAM configuration
  7. Package your SAM application stack
  8. Deploy your application stack to the cloud
  9. Don’t worry, be happy

Leave a Reply