Reputation: 11489
I have created a AWS Cognito user pool where user can login using
I am verifying only "phone number" in attributes so all verification and forget messages going via mobile text SMS and It was working find few days and suddenly stopped sending messages.
Note :
Updated : I have created new region in Mumbai region and no SMS sent but when i have created in N Verginia SMS sent by pool.
Any information or advice greatly appreciated
Upvotes: 1
Views: 4465
Reputation: 11489
So after spending many hrs. to debug issue found Major "BUG" into AWS Cognito Let me explain Step by Step
I have created an AWS Cognito pool in the Mumbai region Asia Pacific (Mumbai) ap-south-1 which uses SNS text messages to send OTP messages.
Requested Mumbai region SNS to increase Limit to 100 USD
Everything was working fine for a few days and suddenly all SMS text messages stopped.
Debug Steps :
3) I have created a new Cognito pool with the same configuration into the different N Verginia region and try to send messages ,messages sent without issue.
So where is the issue ?
BUG :
In my case AWS Cognito internally uses Singapore region to send SMS text messages and where my Limit is 1$ since I am using Mumbai region Cognito should use Mumbai region not Singapore region.
Unfortunately, there is no public documentation available for users to know which is the closest region to the one they have selected. Upon sending SMS text messages. After raising request for all Asia Pacific region issue is resolved .
Since nothing explain in Doc should be documented by AWS.
Upvotes: 2
Reputation: 21
Your Cognito verification sms are sent from different region than your infrastructure region. That's the key to resolve the problem. For example: My Frankfurt Cognito Service sends verification sms from Irland Region. You could check this via Simple Notification Service (Mobile text messaging - Succes / Failure ratio). That's the magic behind AWS and Cognito.
Upvotes: 2