/serverless-auth-sample

A sample authorization service based on the "AWS Lambda in Action" book sample

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Sample Authorization Service

Codacy Badge Build Status Coverage Status

A sample authorization service based on the AWS Lambda in Action sample. This service however, doesn't invoke lambda directly from the client (using AWS Congnito identity pools) but through AWS API Gateway. a post-sls.sh script is used for automating the static content deployment.

Usage

  1. Set up AWS account.
  2. Install aws cli: pip install awscli
  3. Configure AWS credentials: aws configure
  4. Set up dns for your domain. You can use Route 53.
  5. Set up SES for your domain.
  6. Install Severless Framework: npm i -g serverless
  7. Configure all relevant variables in serverless.yml
  8. Deploy: sls deploy
  9. Update static html: ./post-sls.sh

How to delete the service

./sls-remove.sh