Skip to content

Instantly share code, notes, and snippets.

@adrianhall
Created October 10, 2018 17:06
Show Gist options
  • Save adrianhall/5f8e72af295456407f1f35384853dd9c to your computer and use it in GitHub Desktop.
Save adrianhall/5f8e72af295456407f1f35384853dd9c to your computer and use it in GitHub Desktop.
#=======================================================================================
CognitoUserPoolMyPool:
Type : AWS::Cognito::UserPool
Description : "Username / Password auth database"
Properties:
UserPoolName : ${self:provider.apiname}
Schema:
- Name : email
Required : true
Mutable : true
Policies:
PasswordPolicy:
MinimumLength : 6
RequireLowercase : false
RequireUppercase : false
RequireNumbers : false
RequireSymbols : false
AutoVerifiedAttributes : [ "email" ]
MfaConfiguration : "OFF"
#=======================================================================================
AndroidUserPoolClient:
Type : AWS::Cognito::UserPoolClient
Description : "OAuth2 app client for Android app"
Properties:
ClientName : ${self:provider.apiname}-android
GenerateSecret : true
UserPoolId : { Ref: CognitoUserPoolMyPool }
#=======================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment