Skip to content

Commit

Permalink
Cognito user pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Belo authored and Lucas Belo committed Oct 7, 2024
1 parent 8e1da43 commit b25896d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions services/tasks_api/resources/cognito.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Resources:
CognitoUserPool:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName: ${self:provider.stage}-tasks-api-pool
AutoVerifiedAttributes:
- email

CognitoUserPoolClient:
Type: AWS::Cognito::UserPoolClient
Properties:
ClientName: ${self:provider.stage}-tasks-api-client
UserPoolId:
Ref: CognitoUserPool
ExplicitAuthFlows:
- ADMIN_NO_SRP_AUTH
GenerateSecret: false

Outputs:
UserPoolId:
Value:
Ref: CognitoUserPool

UserPoolClientId:
Value:
Ref: CognitoUserPoolClient
1 change: 1 addition & 0 deletions services/tasks_api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ plugins:
- serverless-python-requirements

resources:
- ${file(resources/cognito.yml)}
- ${file(resources/dynamodb.yml)}

0 comments on commit b25896d

Please sign in to comment.