© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
8.4 Configuring Amazon SNS
We will use the Amazon Simple Notification Service to send text messages (SMS) when certain conditions are met.
1.
Go to the
2.
Click on the menu in the left corner to open the navigation pane.
3.
Select
Text Messaging (SMS)
and choose
Publish text message
.
4.
Under
Message type
, select
Promotional.
5.
Enter your phone number (phone number that will receive text alerts).
6.
Enter “Test message” for the
Message
and choose
Publish message
.
7.
If the phone number you entered is valid, you will receive a text message and your phone number will be
confirmed.
8.
Create an Amazon SNS Topic as follows:
a.
In the navigation pane, choose
Topics
.
b.
Select
Create topic
.
c.
Under
Details
, select
Standard
.
d.
Enter a name of your choice. Here we will use “
text_topic.
”
e.
Choose
Create topic
.
9.
Create subscription for this topic as follows:
a.
In the page for the newly created
text_topic
, choose the
Subscriptions
tab.
b.
Choose
Create
subscription
.
c.
Select
Protocol
as
SMS
from the drop-down.
d.
Under
Endpoint
, enter the previously validated phone number to receive the SMS alerts.
e.
Choose
Create subscription
. You should see a “
Subscription to text_topic created successfully
”
message.
8.4.1 Adding a Rule for Amazon SNS Notification