Skip to content

SNS in same country KR to KR

0

Now i am in production but cannot send the message from the python code using ap-northease-2 (seoul), basically sending message from the KR to KR with +82 but faild to send. sms_client = boto3.client('sns', region_name='us-east-1') sms_client.publish( PhoneNumber='+82', Message='Hello from Korea to Korea', MessageAttributes={ 'AWS.SNS.SMS.SMSType': {'DataType': 'String', 'StringValue': 'Transactional'} } ) usign us-east-1 is possible but that is in sandbox. We wanted to send from KR to KR using ap-northeast-2 (seoul- production).

Could you help me all possible step that need to taken on AWS End User Messaging?

Looking forward your kind reply?

for your kind notice the error occurs like File "/home/ubuntu/farmserver/mqtt_FR.py", line 6477, in send_sms 'StringValue': 'Transactional' # for alerts File "/home/ubuntu/.local/lib/python3.6/site-packages/botocore/client.py", line 508, in _api_call return self._make_api_call(operation_name, kwargs) File "/home/ubuntu/.local/lib/python3.6/site-packages/botocore/client.py", line 911, in _make_api_call raise error_class(parsed_response, operation_name) botocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameter) when calling the Publish operation: Invalid parameter: PhoneNumber Reason: +82 is not valid to publish to

Thank you

2 Answers
7
Accepted Answer

How about this:

  1. Use an Alternative SMS Provider

• Twilio • Nexmo (Vonage) • KT or SK Telecom APIs (local providers) These services support Korean numbers and offer production-grade delivery. 2. Use Email or Push Notifications via SNS If SMS isn’t mandatory, SNS can still deliver: • Email notifications • Mobile push notifications (via Firebase, Apple Push, etc.) • HTTP endpoints (for app integrations) 3. Request SMS Support via AWS Support If your use case is critical, you can: • Open a support ticket with AWS • Request enablement of SMS for South Korea • Provide business justification and expected volume This doesn’t guarantee approval, but it’s worth trying if you’re committed to AWS SNS.

EXPERT

answered a year ago

EXPERT

reviewed a year ago

  • thank you very much for your suggestion. but it is mandatory to use sns to send message in south korea.

1

Hello, I observed that you are using "+82" in the phone number. The issue here is likely with the phone number format being passed to Amazon SNS.

SNS requires phone numbers in E.164 format, which means: The number must start with "+" followed by the country code and the full subscriber number (no spaces, no dashes). For South Korea, instead of just +82, you need to include the entire phone number. Once you update the number format to full E.164, the InvalidParameter error should be resolved. [+] https://docs.aws.amazon.com/sms-voice/latest/userguide/send-sms-voice-message.html

Should you need any additional and dedicated support, you can open a support case with AWS Support team: [+] https://docs.aws.amazon.com/awssupport/latest/user/case-management.html

AWS
SUPPORT ENGINEER

answered a year ago

  • Thank you, your kind answer, I provided full number +8210 and 8 digits more, and this number i confirmed no issue. This is following E.164 standard. The issues as aws sns get-sms-attributes --region ap-northeast-2

    An error occurred (AuthorizationError) when calling the GetSMSAttributes operation: This feature is not yet enabled in this region

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.