bennybauer / serverless-auth-sample

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:Apache License 2.0


Languages

Language:JavaScript 71.5%Language:HTML 12.8%Language:CSS 8.3%Language:Shell 7.4%