1 | initial version |
Here are the steps to create an AWS Cognito pool with email sign-up using CloudFormation:
Here's an example CloudFormation template that accomplishes this:
AWSTemplateFormatVersion: '2010-09-09'
Resources:
MyUserPool:
Type: 'AWS::Cognito::UserPool'
Properties:
Schema:
- Name: email
AttributeDataType: String
Mutable: true
Required: true
UsernameAttributes:
- email
AutoVerifiedAttributes:
- email
MyUserPoolClient:
Type: 'AWS::Cognito::UserPoolClient'
Properties:
ClientName: my-app
UserPoolId: !Ref MyUserPool
MyIdentityPool:
Type: 'AWS::Cognito::IdentityPool'
Properties:
IdentityPoolName: my-app-identity-pool
CognitoIdentityProviders:
- ClientId: !Ref MyUserPoolClient
ProviderName: !GetAtt MyUserPool.ProviderName
Outputs:
UserPoolId:
Value: !Ref MyUserPool
UserPoolClientId:
Value: !Ref MyUserPoolClient
Note: This template is just an example and may need to be adapted for your specific use case.