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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠