[Enhancement]: Support Email MFA from Cognito User PoolsΒ #39735
Open
Description
Description
AWS Cognito support Email MFA for login verification, however it is not clear how this is configured and how message templates for email messages for MFA are set.
Affected Resource(s) and/or Data Source(s)
- aws_cognito_user_pool
Potential Terraform Configuration
resource "aws_cognito_user_pool" "example" {
# ... other configuration ...
mfa_configuration = "ON"
sms_authentication_message = "Your code is {####}"
email_authentication_message = "Your MFA code is {####}"
sms_configuration {
external_id = "example"
sns_caller_arn = aws_iam_role.example.arn
sns_region = "us-east-1"
}
email_configuration {
external_id = "example"
ses_caller_arn = aws_iam_role.example.arn
ses_region = "us-east-1"
}
software_token_mfa_configuration {
enabled = true
}
}
References
Would you like to implement a fix?
Yes