- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch5/cognito-pool --path cncb-cognito-pool
- Navigate to the cncb-cognito-pool directory with cd cncb-cognito-pool.
- Review the file named serverless.yml with the following content:
service: cncb-cognito-poolprovider: name: aws # cfnRole: arn:aws:iam::<account-number>:role/${opt:stage}-cfnRoleresources: Resources: CognitoUserPoolCncb: Type: AWS::Cognito::UserPool Properties: UserPoolName: cncb-${opt:stage} ... Schema: - AttributeDataType: 'String' DeveloperOnlyAttribute: false Mutable: true Name: 'email' Required: true ... CognitoUserPoolCncbClient: Type: AWS::Cognito::UserPoolClient ...