I have created an application where I am adding users from aws lambda function to Cognito and also mapping the users to a group.
I didn't get any error, While creating users on aws cognito. I have configured aws cognito to send sms when a new user created.
Sms is not received by some numbers but checking the logs it's marked as delivered.
Please have a look at the below log which confirms that message is received by the user but it's not really delivered.
Cognito Region: US WEST(Oregon)
{
"notification": {
"messageId": "8e7158eb-64dd-53f6-82aa-xxxxxxxxxxxx", // I have replaced original id characters by x
"timestamp": "2019-06-04 16:18:29.681"
},
"delivery": {
"phoneCarrier": "AT&T",
"mnc": 180,
"destination": "+1310600xxxx", // I have replaced last 4 digit with x here to show code.
"priceInUSD": 0.00645,
"smsType": "Transactional",
"mcc": 311,
"providerResponse": "Message has been accepted by phone",
"dwellTimeMs": 381,
"dwellTimeMsUntilDeviceAck": 890698
},
"status": "SUCCESS"
}
AWS cognito MFA and Verifications:
AWS cognito Message Customizations: