I want to be notified when I'm close to my monthly mobile text (SMS) messaging spending limit for Amazon Simple Notification Service (Amazon SNS). How do I set that up?
You can create an Amazon CloudWatch alarm to notify you when you're close to reaching your monthly SMS messaging spending limit for Amazon SNS.
Important: By default, the Account spend limit for SMS messaging is set to 1.00 USD. To raise the service quota, you must submit a request. When you reach your SMS messaging spending limit, Amazon SNS stops publishing SMS messages.
(Prerequisite) Create an Amazon SNS topic
Follow the instructions in Creating an Amazon SNS topic.
Subscribe an endpoint to the Amazon SNS topic
Follow the instructions in Subscribing to an Amazon SNS topic. When you subscribe to the topic, make sure that you do the following:
- For Protocol, choose Email or SMS, based on how you'd like to receive notifications.
- For Endpoint, enter your email address or mobile phone number, based on your Protocol selection.
Important: If you choose Email, you must confirm the subscription before you can get notifications. To confirm a subscription, check your email inbox and choose Confirm subscription in the email you receive from Amazon SNS.
Set an SMS spending alarm in CloudWatch
Follow the instructions in Create an SMS spending alarm by using CloudWatch.
For more information, see Amazon SNS metrics and Set CloudWatch alarms for Amazon SNS metrics.
Important: AWS service quotas are AWS Region-specific. If you use Amazon SNS for SMS messaging in multiple Regions, you must create an alarm for each Region.
(Optional) Review your current SMS messaging spending
To see your SMS messaging spending for the current month, follow the instructions in View you monthly SMS spending by using CloudWatch.
Setting SMS messaging preferences
Monitoring Amazon SNS topics using CloudWatch
Amazon Pinpoint SMS channel