2

Ich glaube, ich alle Eigenschaften hier versucht:Wie wird die E-Mail-Validierung in Cognito durch CloudFormation benötigt?

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html

nicht dieses Feld markiert bekommen konnte:

enter image description here

Meine Config zur Zeit:

CognitoUserPoolGeneral: 
     Type: AWS::Cognito::UserPool 
     Properties: 
     UserPoolName: general 
     Policies: 
      PasswordPolicy: 
      MinimumLength: 6 
      RequireLowercase: false 
      RequireNumbers: false 
      RequireSymbols: false 
      RequireUppercase: false 
     Schema: 
      - AttributeDataType: String 
      Name: preferredLocale 
      DeveloperOnlyAttribute: false 
      Mutable: true 
      Required: false 
     EmailVerificationMessage: "Here's your verification code: {####}. Please provide it inside the application." 
     EmailVerificationSubject: "subject" 

Antwort

2

Sie hinzufügen

AutoVerifiedAttributes: 
    - email 

Um Ihre Properties Schlüssel, etwa so:

UserPool: 
    Type: "AWS::Cognito::UserPool" 
    Properties: 
     UserPoolName: !Sub ${AuthName}-user-pool 
     AutoVerifiedAttributes: 
     - email 
     Policies:..... 

Für ein hervorragendes Beispiel für eine Cloudformation-Vorlage, die Cognito Ressourcen schafft, siehe:

https://gist.github.com/singledigit/2c4d7232fa96d9e98a3de89cf6ebe7a5

+0

warten. Wie übersetzt "AutoVerifiedAttributes" zu "Require Verification"? – Birowsky

+1

@Birowsky Ich stimme zu 100% zu, 'AutoVerifiedAttributes' ist ein ** schrecklicher ** Name. –

+0

-_- 'Grrr !! AWS ... AWS ... –

Verwandte Themen