Created
February 4, 2022 11:05
-
-
Save s1moe2/22ed8b008b2dc5f2c5e67e909793cc7f to your computer and use it in GitHub Desktop.
CloudFormation - user pool & client setup sample
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
AWSTemplateFormatVersion: 2010-09-09 | |
Parameters: | |
PoolName: | |
Type: String | |
PoolClientName: | |
Type: string | |
Resources: | |
Pool: | |
Type: AWS::Cognito::UserPool | |
Properties: | |
UserPoolName: !Ref PoolName | |
UsernameAttributes: | |
UsernameConfiguration: | |
CaseSensitive: false | |
Policies: | |
PasswordPolicy: | |
MinimumLength: 8 | |
RequireLowercase: true | |
RequireUppercase: true | |
RequireNumbers: true | |
RequireSymbols: true | |
TemporaryPasswordValidityDays: 7 | |
PoolClient: | |
Type: AWS::Cognito::UserPoolClient | |
Properties: | |
ClientName: !Ref PoolClientName | |
GenerateSecret: false | |
UserPoolId: !Ref Pool | |
Outputs: | |
UserPoolId: | |
Value: !Ref UserPool | |
Export: | |
Name: "Pool::Id" | |
UserPoolClientId: | |
Value: !Ref UserPoolClient | |
Export: | |
Name: "PoolClient::Id" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment