Build a turn-based game with Amazon DynamoDB and Amazon SNS - UK telephone number problem.

0

Hi all

I started doing the above lab and have came across an issue and I'm not sure if its me or this is a problem. Of this lab I'm on module 3 which is set up notifications, you need to copy a line of code, edit it to have your own country code and your own telephone number. This is the code -

echo "export PHONE_NUMBER=+15555555555" >> env.sh && source env.sh

I won't include my telephone number but being based in the UK mine looks something like this -

echo "export PHONE_NUMBER=+4407983655512" >> env.sh && source env.sh

I have also tried -

echo "export PHONE_NUMBER=+447983655512" >> env.sh && source env.sh

None of the above worked when you add the next line of code which is to send a message, the interface tells me "sent message successfully" but I haven't received anything. I'm thinking I may need to go back a few steps and change the region to one in the UK but I think that would be a stretch otherwise it wouldn't be asking for the international code.

Hope someone can help

Thanks

1 回答
1

It might be that your account is in the SMS sandbox for the region you're using, which means that you can only send messages to verified phone numbers.

When I tried the code from the lab, I also got "Sent message successfully" and no SMS message when using a region where my account is in the SMS sandbox. Once I either used a region where the account has production access or verified my phone number in the region, I received the message successfully.

https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html

Ed
已回答 2 年前
  • Ed, Thank you so much for responding. I apologise I never saw this sooner!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则