By using AWS re:Post, you agree to the AWS re:Post Terms of Use

How do I set a monthly spending limit alarm for SMS messages in Amazon SNS

0

We have The maximum amount to spend on SMS messages each month is 200 USD and as of now we have set 100 USD. if in case msg quota is no left the we can increase to 150 or 160 upto 200. So i have to set cloud watch alarm for if 100 USD would be over for this month. so that we will have to get notification if 100 USD over then we can increased the spend limit 110 or 120 USD Enter image description here

is it possible and how ?

2 Answers
0

Hello Ritesh, To set up a monthly spending limit alarm for SMS messages in Amazon SNS, you can utilize the SMSMonthToDateSpentUSD metric. Here's how to do it:

  1. Open the CloudWatch console in AWS.
  2. Navigate to "Alarms" and click "Create alarm".
  3. Select "SNS" under AWS namespaces, then choose "Topic Metrics".
  4. Find and select the SMSMonthToDateSpentUSD metric.
  5. When configuring the alarm:
    • Set the statistic to Sum
    • Choose an appropriate period (e.g., 1 hour)
    • Define your threshold based on your monthly budget
  6. Set up notifications for when the alarm state changes to "In alarm".
  7. Name your alarm descriptively and create it.

This setup will alert you when your SMS spending approaches or exceeds your defined limit. For more detailed information, please refer to the AWS documentation: https://docs.aws.amazon.com/sns/latest/dg/sns-monitoring-using-cloudwatch.html By using the Sum statistic, you'll get an accurate representation of your total monthly SMS spend, allowing for better cost management and budget control.

AWS
answered 5 months ago
0

Hi Ritesh,

You can follow the steps mentioned in the document below to create a cloudwatch alarm for your use case.
[+] https://docs.aws.amazon.com/sns/latest/dg/sns-monitoring-using-cloudwatch.html#SNS_AlarmMetrics

** For step 3 in the above doc when you have to choose the metric. Follow the below steps

  • choose Metrics -> Choose SNS-> choose Metrics with no dimensions -> Choose the SMSMonthToDateSpentUSD metric.
  • Then for the Threshold type, you can choose -> static -> Greater/Equal -> 100 ( threshold value)

For more information, please refer to link below.
[+] https://repost.aws/knowledge-center/sns-sms-spending-limit-alarm

AWS
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions