SNS block send SMS for specific countries

1

Hello. Does it possible to block countries for SMS sending in SMS settings (SNS service)

  • Following up. Did anyone figure out a way?

1 Answer
0

Unfortunately, SNS does not support such feature yet. However, if needed be, as a workaround you may build a custom lambda that filters the messages with unwanted country code and then processes the Publish API [1] on rest of the messages.In short you may add logic to simply check country code for entered phone number and deny PublishAPI based on these results.

For any new feature release, refer to AWS blogs [2] and Whats new [3] page

References: 1] https://docs.aws.amazon.com/sns/latest/api/API_Publish.html 2] https://aws.amazon.com/blogs/aws/ 3] https://aws.amazon.com/new/

answered a year ago

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.

Guidelines for Answering Questions