Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.36 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.36 KB

serverless-ddb-lambda-deemo

Demo of Serverless application using AWS DynamoDB and Lambda

Brief / Requirements

  1. Create a Serverless application
  2. Create a DynamoDB table in your AWS account to house "User" data. Attributes:
    1. id: String UUID
    2. firstName: String
    3. lastName: String
    4. username: String
    5. credentials: String (Encrypted)
    6. email: String
  3. Create Lambdas to create and list items from this DynamoDB table.
    1. Keep credentials attribute as a write-only attribute.
  4. Upon save take plain password and encrypt it using KMS with a user-defined CMK.
  5. Make the Lambda function available via an AWS API Gateway endpoint.
  6. Write unit tests for your code by mocking AWS EC2 API.
  7. Produce a code coverage report for your test suite.
  8. Make response JSON:API 1.0 compatible.

Requirements

Initial setup

  • Run aws configure if your box is not configured with AWS yet
  • Run npm i

Deployment

Run npm run deploy -- --stage { dev | prod } to deploy to either dev or prod. --stage is required.