Last active
April 2, 2020 14:42
-
-
Save kevinchisholm/88bd7a3ea504010b3890c61aea777aed 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 | |
# export the user pool | |
Outputs: | |
UserPoolId: | |
Value: | |
Ref: CognitoUserPool | |
Export: | |
Name: UserPoolId-${self:service.name}-${self:provider.stage} | |
UserPoolClientId: | |
Value: | |
Ref: CognitoUserPoolClient | |
Export: | |
Name: UserPoolClientId-${self:service.name}-${self:provider.stage} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment