Skip to content

Commit b25896d

Browse files
Lucas BeloLucas Belo
Lucas Belo
authored and
Lucas Belo
committed
Cognito user pool
1 parent 8e1da43 commit b25896d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -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+
Properties:
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+
UserPoolId:
21+
Value:
22+
Ref: CognitoUserPool
23+
24+
UserPoolClientId:
25+
Value:
26+
Ref: CognitoUserPoolClient

services/tasks_api/serverless.yml

+1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ plugins:
5757
- serverless-python-requirements
5858

5959
resources:
60+
- ${file(resources/cognito.yml)}
6061
- ${file(resources/dynamodb.yml)}

0 commit comments

Comments
 (0)