Demo of Serverless application using AWS DynamoDB and Lambda
- Create a Serverless application
- Create a DynamoDB table in your AWS account to house "User" data. Attributes:
- id: String UUID
- firstName: String
- lastName: String
- username: String
- credentials: String (Encrypted)
- email: String
- Create Lambdas to create and list items from this DynamoDB table.
- Keep credentials attribute as a write-only attribute.
- Upon save take plain password and encrypt it using KMS with a user-defined CMK.
- Make the Lambda function available via an AWS API Gateway endpoint.
- Write unit tests for your code by mocking AWS EC2 API.
- Produce a code coverage report for your test suite.
- Make response JSON:API 1.0 compatible.
- nodejs latest LTS (installation instructions)
- aws cli (installation instructions)
- Run
aws configure
if your box is not configured with AWS yet - Run
npm i
Run npm run deploy -- --stage { dev | prod }
to deploy to either dev or prod. --stage
is required.