This is a proof of concept for aws node cognito identity service provider.
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html
First, setup the profile inside serverless.yml
After deployed, you'll need to setup the environment variables: COGNITO_USER_POOL_ID and COGNITO_CLIENT_ID (you can find theses values in your User Pool on AWS).
sls deploy
You can invoke your function using the following command:
sls invoke -f cognito
Which should result in a created user in your client pool.