Provisioning a Cognito user pool

In this section, let's have a look at how to provision a Cognito user pool. The code blocks in this section will reside in a file called cognito.ymlwhich will be referenced in the serverless.yml file:

Resources:  CognitoUserPoolUserPool:    Type: "AWS::Cognito::UserPool"    Properties:      UserPoolName: ${self:service}-user-pool-${self:provider.stage}-1      AutoVerifiedAttributes:        - email

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.