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!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠