Skip to content

Instantly share code, notes, and snippets.

@Pwntus
Created May 18, 2017 19:45
Show Gist options
  • Select an option

  • Save Pwntus/25d13cc0b003df692758d03f941c7bed to your computer and use it in GitHub Desktop.

Select an option

Save Pwntus/25d13cc0b003df692758d03f941c7bed to your computer and use it in GitHub Desktop.

Revisions

  1. Pwntus created this gist May 18, 2017.
    30 changes: 30 additions & 0 deletions serverless.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    resources:
    Resources:

    # User Pool
    MyUserPool:
    Type: AWS::Cognito::UserPool
    Properties:
    AdminCreateUserConfig:
    AllowAdminCreateUserOnly: False
    InviteMessageTemplate:
    EmailMessage: Your username is {username} and temporary password is {####}.
    EmailSubject: Your temporary password
    SMSMessage: Your username is {username} and temporary password is {####}.
    UnusedAccountValidityDays: 7
    AliasAttributes:
    - email
    - preferred_username
    AutoVerifiedAttributes:
    - email
    # Etc...

    # User Pool Client
    MyUserPoolClient:
    Type: AWS::Cognito::UserPoolClient
    Properties:
    ClientName: my-userpool-client-name
    GenerateSecret: False
    RefreshTokenValidity: 30
    UserPoolId:
    Ref: MyUserPool