Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SNS is not sending SMS anymore

Tags:

I have been using Amazon SNS to send SMS for a while, but two days ago it stopped working. I didn't change anything on my side. Even if I try to send SMS from the console, it still doesn't work.

I only have 35% delivery rate for last couple of days, but since yesterday it is not working at all.

like image 697
ali Avatar asked Jan 17 '19 18:01

ali


People also ask

Can I send SMS using SNS?

You can use Amazon SNS to send text messages, or SMS messages, to SMS-enabled devices. You can send a message directly to a phone number, or you can send a message to multiple phone numbers at once by subscribing those phone numbers to a topic and sending your message to the topic.

How do I use Amazon SNS to send SMS in Java?

If you want to send a SMS message to a single number you can use the Amazon AWS SDK. Docs are available at http://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html#sms_publish_sdk.


2 Answers

There are different ways to troubleshoot this problem. This is something addressed in the Developer Forum of AWS. Please go through the following steps to troubleshoot this problem. These could be basic steps, but I am pointing out the most general steps required.

  1. Try sending an SMS from the AWS Console. If this works, there is no issue with the spending limit or delivery rate. (So you have mentioned that this is not working too)
  2. Now check whether your Mobile number (which is receiving SMS) is subscribed to the topic. Under some conditions, the recipient can opt out from the topic.

Where required by local laws and regulations (such as the US and Canada), SMS recipients can opt out, which means that they choose to stop receiving SMS messages from your AWS account.

  1. Check the Account Spending Limit which you have set for your calendar month. This could be limiting your SMS delivery. If you haven't set this, the default is 1 USD per month.

For Account spend limit, type the maximum amount in USD that you want to spend on SMS messages each calendar month. When Amazon SNS determines that sending an SMS message would incur a cost that exceeds your spend limit for that month, Amazon SNS stops publishing SMS messages within minutes.

  1. For much more obvious reasons, check whether your Mobile Number (Which is receiving SMSs), is not blocking any of your SMSs.
  2. If none of these work, do contact AWS support team, they will get back to you within 2 working days. They will definitely sort it out. Until now, all my support calls were successfully resolved by their team.
like image 135
Keet Sugathadasa Avatar answered Sep 20 '22 15:09

Keet Sugathadasa


Since yesterday, the messages have completely stopped coming so you might have reached the SNS SMS spend limit for your account. By default it is 1 USD for a AWS account in a AWS region. You should get your limit increased.

But in future if you want to prevent this i.e. if you want to get notified earlier before you reach the actual SMS Spend Limit for your account so that limit can be increased before hand. In this way you would not face SMS delivery issues due to limit being reached. You can create a CloudWatch Alarm on your SMSMonthToDateSpentUSD metric.

Please have a look at this video: https://www.youtube.com/watch?v=5-HdLf_lizI

like image 41
anirudh gupta Avatar answered Sep 20 '22 15:09

anirudh gupta