Created
April 2, 2020 10:29
-
-
Save kevinchisholm/677a68e99f7cee82c033b87d14a8ee91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: my-user-pool | |
provider: | |
name: aws | |
stage: ${opt:stage, "dev"} | |
custom: | |
COGNITO_USER_POOL: ${self:service.name}-${self:provider.stage} | |
COGNITO_CLIENT: ${self:service.name}-cognito-client-${self:provider.stage} | |
resources: | |
Resources: | |
CognitoUserPool: | |
Type: AWS::Cognito::UserPool | |
Properties: | |
UserPoolName: ${self:custom.COGNITO_USER_POOL} | |
AutoVerifiedAttributes: | |
CognitoUserPoolClient: | |
Type: AWS::Cognito::UserPoolClient | |
Properties: | |
ClientName: ${self:custom.COGNITO_CLIENT} | |
UserPoolId: | |
Ref: CognitoUserPool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment