You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User is trying to create a Cognito user pool using the L1 construct and ONLY email MFA enabled leads to an error in CloudFormation.
This DOES work if I create the same user pool without any MFA enabled and then go to the AWS console and update it manually to have email only MFA.
Expected Behavior
CloudFormation is able to create the requested resource without issues.
Observed Behavior
Error received -
Resource handler returned message: "SMS configuration and Auto verification for phone_number are required when MFA is required/optional (Service: CognitoIdentityProvider, Status Code: 400, Request ID: ..., HandlerErrorCode: InvalidRequest)
Test Cases
Here is an example of a stack that yields the error in CloudFormation
Name of the resource
AWS::Cognito::UserPool
Resource Name
AWS:COGNITO:USERPOOL
Issue Description
User is trying to create a Cognito user pool using the L1 construct and ONLY email MFA enabled leads to an error in CloudFormation.
This DOES work if I create the same user pool without any MFA enabled and then go to the AWS console and update it manually to have email only MFA.
Expected Behavior
CloudFormation is able to create the requested resource without issues.
Observed Behavior
Error received -
Test Cases
Here is an example of a stack that yields the error in CloudFormation
user also tried giving
EmailConfiguration
in the docs but it still yields the same errorOther Details
Origiinal issue reported in CDK -aws/aws-cdk#32615
Previous issue ( not similar but linked) - aws/aws-cdk#11478
The text was updated successfully, but these errors were encountered: