title: Creating AWS Cognito User Pool from serverless.yml
body: <p>I am trying to use an AWS Cognito User Pool for user authentication, but I can't seem to figure out how to create one from the <code>serverless.yml</code> file. I know that to create other resources you do something like:</p>
  
  <pre><code>resources:
    Resources:
      Table:
        Type: "AWS::DynamoDB::Table"  # Change this to "AWS::Cognito::UserPool"?
        DeletionPolicy: Retain
        Properties:                   # Change the properties here, but to what?
          AttributeDefinitions:
            -
              AttributeName: id
              AttributeType: S
          KeySchema:
            -
              AttributeName: id
              KeyType: HASH
          ProvisionedThroughput:
            ReadCapacityUnits: 1
            WriteCapacityUnits: 1
          TableName: arn:aws:dynamodb:us-west-1:*:table/tablename
  </code></pre>
  
  <p>I am assuming that I just need to change the type to <code>"AWS:Cognito::UserPool"</code> and change the properties. However, I have no idea what to change it to.</p>