AWS SNS currently does not have a bulk import option for adding subscriptions.

Please remember AWS SNS API throttling Limits before implementing this.

The possible workaround is as follows:


  1. awscli
  2. Access and Secret Keys
  3. terminal

Create a file company.txt and the endpoints for example lets say you want to subscribe phone numbers of your employees in the company.


2. Open a terminal and run the following command by replacing the topic-arn with your topic ARN.

ForEach ($file in (Get-Content -Path company.txt
)) {aws sns subscribe — topic-arn <TOPIC_ARN> — protocol sms — notification-endpoint $file}

Then you can check it in the AWS SNS Console. You will see the subscription registered.


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store