- Newest
- Most votes
- Most comments
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:
-
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.
-
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.
-
Monitor your usage: Keep track of how many messages you've sent and stay within the $1.00 limit to avoid interruptions in service.
-
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.
-
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.
-
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
Relevant content
asked 3 years ago
asked 2 years ago
asked 2 years ago
- AWS OFFICIALUpdated 5 months ago
