Blog Relay - Sending SMS Messages through Amazon SNS
Hello! I'm Chae-Jeong Lim from the Cloud Business Division.
This blog is the 30th blog in our Korean blog relay for 2025.
The topic of this blog is "Sending SMS Messages through Amazon SNS".
1. Pre-Practice Considerations
Before actually practicing, I'll summarize a few points to note about sending SMS messages.
1.1. Cannot be used in the Korea region.
SMS functionality is not available in all AWS regions.
In particular, although you can send messages after registering a phone number, the regions that support sender IDs are limited, so you must use it in a supported region. (There are also countries where sending is not possible.)
The Korea region does not support sender IDs.
Therefore, today's test will be conducted in the Japan region, which supports sender IDs.
When you check the console page, you can see that depending on availability, the Text messaging (SMS)
page button in the left menu bar of Amazon SNS is either present or absent.
<SNS in Korea Region>
<SNS in Japan Region>
1.2. What is AWS SNS sandbox mode?
In this blog, we will run SMS transmission tests through AWS SNS sandbox mode.
AWS SNS (Simple Notification Service)'s sandbox mode is a restricted mode applied to new accounts to prevent spam and enhance security.
In sandbox mode, there are the following restrictions:
- SMS can only be sent to verified phone numbers
- Up to 10 verified phone numbers can be registered
- Registered phone numbers can only be deleted after at least 24 hours have elapsed since verification or the last verification attempt
If you don't want to use SNS sandbox mode, you can change to production mode.
Please refer to the following guide for how to change to production mode.
1.3. About SMS pricing
You can check the pricing for SMS transmission on the following page.
The monthly spending limit for SMS is set at 1.00 USD by default.
If you want to increase the spending limit, you can request an increase in the account spending limit through the AWS End User Messaging console.
2. Registering a Phone Number### 2.1. Register a Sandbox Target Phone Number
Now let's try using it for real.
Go to Text messaging (SMS)
in the Amazon SNS console.
You will see a list of sandbox target phone numbers, and click Add phone number
there.
Since I want to test with a Korean phone number, I'll enter a Korean phone number and select Korean as the verification message language.
Then a verification code will be sent to the registered phone number.
Since the message is sent from Japan, a notification that it was sent from overseas will also be included.
Enter that verification code in the Verification code
field and click the Verify phone number
button.
Then a new phone number has been registered as shown below.
2.2. Publishing a Text Message
Let's check if the message is being sent properly.
You can send a test message using the Publish text message
button function at the top of the SMS console page.
Select the number you just registered as the target phone number, and enter any message content you want.
When you publish the message, the console screen will display that the SMS message delivery has been completed
And the message you entered will be sent to the actual phone as shown below.
3. Subscribe a Phone Number to SNS### 3.1. Adding Subscription to SNS Topic
Now let's try using the SNS topic by subscribing to it.
In this blog, we will add a subscription to the existing SNS topic.
Click on Add Subscription
in the subscription list.
Select the following options and add the subscription:
- Protocol:
SMS
- Endpoint:
+8210xxxxxxxx
(the phone number you registered earlier)
When subscribing with email, a separate email verification step is required, but since we've already registered the phone number, there's no verification process.
When we check, we can see that the SMS subscription has been successfully registered as shown below.
3.2. Testing by Publishing a Message
Let's test it again.
Click on the Publish Message
button.
Enter any message you want to send in the message body and send it.
Again, we get a notification that the message has been sent
And the message is delivered to the phone.
The part that says Test SNS
is the display name of the SNS topic.
4. Conclusion
That concludes the 30th blog of the Korean blog relay 2025, "Sending SMS Messages through Amazon SNS."
The 31st blog relay will be published in the first week of September.
Thank you for reading until the end! This was Chaejung Lim from the Cloud Business Division.
Blog Relay
If you're interested in other blogs, please refer to the page below.
Contact Classmethod Korea for inquiries!
Classmethod Korea conducts various seminars and events.
Please refer to the page below for ongoing events.
For consultations regarding AWS and inquiries about Classmethod Korea members, please contact us at the email below!
Info@classmethod.kr