In this recipe, we will create a Simple Notification Service (SNS) topic for both email and SMS subscriptions. In the real world, you may use this for features such as one time passwords (OTP). We had already indirectly used SNS when we used SMS verification in Chapter 4, Application Security with Amazon Cognito.
Your first SNS topic for email and SMS (AWS CLI + CloudFormation)
Getting ready
The following are the prerequisites for this recipe:
- A working phone number and email address.
How to do it...
We will first create an SNS topic and then test email and SMS subscriptions...