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.
- Set up AWS account.
- Install aws cli:
pip install awscli
- Configure AWS credentials:
aws configure
- Set up dns for your domain. You can use Route 53.
- Set up SES for your domain.
- Install Severless Framework:
npm i -g serverless
- Configure all relevant variables in
serverless.yml
- Deploy:
sls deploy
- Update static html:
./post-sls.sh
./sls-remove.sh