Skip to content

johnf/serverless-cognito-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This was a demo for a pull request into serverless.

If you are wondering what you need to do client side, check out https://github.com/aws/amazon-cognito-identity-js

Serverless Test

This testing assume that you have default AWS credentials set up in ~/.aws or you are running on an EC2 instance with an EC2 role with the appropriate permissions.

Testing

Create the pool

First you need to create a userpool

bin/create_user_pool

this will output the ARN

User Pool ARN is arn:aws:cognito-idp:us-east-1:123456789:userpool/us-east-1_XXXXXX

Configure Serverless

Copy this ARN into arn: section of serverless.yml

Configure serverless to use your AWS credential.

Bring up the stack

sls deploy

Verify

Cleanup

Bring down the stack

sls remove

Delete the pool, you need to pass in the ID. The bit at the end of the ARN.

bin/delete_user_pool us-east-1_XX

About

Serverless Cognito Demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published