Skip to content

[Enhancement]: Support Email MFA from Cognito User PoolsΒ #39735

Open
@whatnick

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

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security-email-mfa.html

Would you like to implement a fix?

Yes

Metadata

Assignees

No one assigned

    Labels

    questionA question about existing functionality; most questions are re-routed to discuss.hashicorp.com.service/cognitoidpIssues and PRs that pertain to the cognitoidp service.waiting-responseMaintainers are waiting on response from community or contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions