-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-cognitoRelated to Amazon CognitoRelated to Amazon CognitobugThis issue is a bug.This issue is a bug.p1
Description
Reported by @0xdevalias -
const userPool = new cognito.UserPool(this, 'UserPool', {
// ..snip..
userVerification: {
emailSubject: 'Confirm your account on REDACTED',
emailBody:
'Hello {username}, welcome to REDACTED! Use the following link to verify your account: {####}',
emailStyle: cognito.VerificationEmailStyle.LINK,
smsMessage:
'Hello {username}, welcome to REDACTED! Use the following code to verify your account: {####}',
},
// ..snip..
})generates the following error -
1/3 | 8:50:23 PM | UPDATE_FAILED | AWS::Cognito::UserPool | UserPool (UserPool6BA7E5F2) The message is invalid. (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: c3ce01b4-a431-4475-82fd-fdc30fec3660)
new UserPool (/Users/devalias/dev/REDACTED/packages/REDACTED-infrastructure/node_modules/@aws-cdk/aws-cognito/lib/user-pool.js:73:26)
0xdevalias0xdevalias
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-cognitoRelated to Amazon CognitoRelated to Amazon CognitobugThis issue is a bug.This issue is a bug.p1