Home icon

How to use WhatsApp to send Amazon Cognito notification messages

Security Blog



This article explains how to use WhatsApp to send verification codes or MFA codes from Amazon Cognito instead of SMS, by leveraging the custom SMS sender Lambda trigger.

Specifically, the article covers:

  • Prerequisites like AWS account, Meta developer account, Git, AWS CDK Toolkit, Node.js, and Docker
  • Creating and configuring a Meta app for WhatsApp communication
  • Creating a user for accessing WhatsApp API
  • Creating a WhatsApp message template
  • Storing the WhatsApp access token in AWS Secrets Manager
  • Deploying the solution using AWS CDK code
  • Testing the solution by signing up a new Cognito user
  • Cleanup steps to delete the resources


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 5
2026
Send WhatsApp Business messages with AWS End User Messaging Social
Oct 11
2024
Bring your conversations to WhatsApp with AWS End User Messaging Social
Oct 13
2025
Integrate Amazon CloudWatch alarms with WhatsApp using AWS End User Messaging
Dec 2
2024
Amazon Connect now supports WhatsApp Business messaging

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.