Skip to content

Instantly share code, notes, and snippets.

@Pwntus
Created May 18, 2017 19:45
Show Gist options
  • Save Pwntus/25d13cc0b003df692758d03f941c7bed to your computer and use it in GitHub Desktop.
Save Pwntus/25d13cc0b003df692758d03f941c7bed to your computer and use it in GitHub Desktop.
SLS Cognito
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment