Skip to content

Instantly share code, notes, and snippets.

@jsonw23
Created April 6, 2022 12:30
Show Gist options
  • Save jsonw23/b5d38ae86313513ad2c7977c8dd66ede to your computer and use it in GitHub Desktop.
Save jsonw23/b5d38ae86313513ad2c7977c8dd66ede to your computer and use it in GitHub Desktop.
Parameters:
App:
Type: String
Description: Your application's name.
Env:
Type: String
Description: The environment name your service, job, or workflow is being deployed to.
Name:
Type: String
Description: The name of the service, job, or workflow being deployed.
Resources:
CognitoUserPool:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName:
CognitoUserPoolClient:
Type: AWS::Cognito::UserPoolClient
Properties:
UserPoolId: !Ref CognitoUserPool
ClientName:
GenerateSecret: true
AllowedOAuthFlows:
- code
AllowedOAuthScopes:
- openid
- email
- profile
CallbackURLs:
- http://localhost:8080/auth
Outputs:
# this is where I would output the auth domain and client secret to the rest of my stack
# if it were possible!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment