We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e1da43 commit b25896dCopy full SHA for b25896d
services/tasks_api/resources/cognito.yml
@@ -0,0 +1,26 @@
1
+Resources:
2
+ CognitoUserPool:
3
+ Type: AWS::Cognito::UserPool
4
+ Properties:
5
+ UserPoolName: ${self:provider.stage}-tasks-api-pool
6
+ AutoVerifiedAttributes:
7
+ - email
8
+
9
+ CognitoUserPoolClient:
10
+ Type: AWS::Cognito::UserPoolClient
11
12
+ ClientName: ${self:provider.stage}-tasks-api-client
13
+ UserPoolId:
14
+ Ref: CognitoUserPool
15
+ ExplicitAuthFlows:
16
+ - ADMIN_NO_SRP_AUTH
17
+ GenerateSecret: false
18
19
+Outputs:
20
21
+ Value:
22
23
24
+ UserPoolClientId:
25
26
+ Ref: CognitoUserPoolClient
services/tasks_api/serverless.yml
@@ -57,4 +57,5 @@ plugins:
57
- serverless-python-requirements
58
59
resources:
60
+ - ${file(resources/cognito.yml)}
61
- ${file(resources/dynamodb.yml)}
0 commit comments