After setting phone_number via Auth.updateUserAttributes(), no verification code (SMS) is sent

0

Hi,

This is with amplify (ver 4.3.23). We are in sandbox mode using SNS for sending messages related to our user pool. While in sandbox mode, I created a single Sandbox destination phone number. This allowed me to test phone number verification and MFA flows (non-hosted ui).

A few days ago (before the weekend) I suddenly stopped receiving verification messages via SMS. This morning (after no activity over the weekend) I did get 3 more messages come through, but it has stopped again.

  • Is there a way to confirm if this is a free tier / spending limit issue?
  • If so, is there a way we can increase our limits without putting the sandbox in production mode?
2 回答
1

Please note that the Monthly Spending Limit is a limit set by AWS that you cannot exceed unless a limit increase support case [1] is created. You must increase your account’s SNS SMS monthly spending limit [1] for sending SMS messages in Amazon SNS.

Additionally, I would like to mention that you may also create an SMS spending alarm [2] [3] using CloudWatch. It can notify you when your SMS spending exceeds a certain amount (threshold). This can help you in taking timely actions without halting the SMS capabilities of your account. You can set up CloudWatch to deliver these notifications to you by SMS, Email etc. via SNS topic.

You can monitor the spending as well [4]

Also, if quota is not an issue, you can enable cloudwatch logs[5] to see the failure and success logs

References: [1] https://aws.amazon.com/premiumsupport/knowledge-center/sns-sms-spending-limit-increase/ [2] https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-monitor-spending.html#channels-sms-monitor-spending-alarms [3]https://aws.amazon.com/premiumsupport/knowledge-center/sns-sms-spending-limit-alarm/ [4]https://docs.aws.amazon.com/sms-voice/latest/userguide/monitor-spending.html [5]https://docs.aws.amazon.com/sns/latest/dg/sms_stats_cloudwatch.html

AWS
支持工程师
Palak
已回答 2 个月前
profile picture
专家
已审核 2 个月前
1

Adding to the previous answer, you can get your limit increased in sandbox mode as well

AWS
支持工程师
Palak
已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则