Skip to content

Change your spending threshold

0

Hi, everyone. I'm trying to set up Cognito authentication with phone number OTP verification. During development, I'm trying to add the verified phone number and get an error: Error code: AuthorizationError - Error message: Access Denied - MoreInformation="https://docs.aws.amazon.com/sms-voice/latest/userguide/awssupport-spend-threshold.html "

Answer from support:

Due to some limiting factors on your account at this time, you are not eligible to send SMS messages in Europe (Ireland) region. You will need to show a pattern of use of other AWS services and a consistent paid billing history to gain access to this function.

We enforce these limitations on all new accounts. Your continued usage of other AWS services will give us greater flexibility to increase your spending limits in the future.

Question: How could I use a sandbox?

1 Answer
0

To use the sandbox environment for SMS messaging in AWS, you need to understand that new accounts are initially placed in a sandbox to protect against fraud and abuse while providing a safe environment for testing. The sandbox has a default monthly spending threshold of $1.00 (USD), which limits the volume of messages you can send.

While in the sandbox, you can still test your Cognito authentication with phone number OTP verification, but with limitations. Here's how you can proceed:

  1. Work within the $1.00 spending limit: This will allow you to send a limited number of SMS messages for testing purposes. Keep in mind that the cost per message varies by destination country.

  2. Use the sandbox for initial testing: You can set up and test your Cognito authentication flow, including the phone number verification process, within these limitations.

  3. Monitor your usage: Keep track of how many messages you've sent and stay within the $1.00 limit to avoid interruptions in service.

  4. Consider alternative testing methods: For extensive testing without incurring costs, you might want to explore using email instead of SMS for OTP during the development phase.

  5. Build up account history: As mentioned in the support response, continue using other AWS services and maintain a consistent paid billing history. This will help you establish a pattern of use that may allow AWS to increase your limits in the future.

  6. Request a limit increase when ready: Once you've established a usage pattern and are ready to move to production, you can submit a request to increase your spending threshold and move out of the sandbox. This request will be reviewed by AWS, taking into account your account history and use case.

Remember that while in the sandbox, you're limited in terms of message volume, but you can still test and develop your authentication system. As you build up your AWS usage history, you'll be in a better position to request higher limits when you're ready to scale up your SMS usage.
Sources
Requesting support for SMS, MMS, and voice messaging through Support - AWS End User Messaging SMS
Requesting an SMS, MMS, or voice spending quota change for AWS End User Messaging SMS - AWS End User Messaging SMS
Unable to Send SMS using SNS | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years 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.