Get List of AWS SNS Topic Subscriptions using CLI

In order to retrieve the list of all the subscriptions for an AWS SNS Topic via CLI you can make use of the aws sns list-subscriptions-by-topic command.


aws sns list-subscriptions-by-topic --topic-arn <topic-arn>


aws sns list-subscriptions-by-topic --topic-arn arn:aws:sns:us-east-1:5762xx665xx1:smslTopic

|                                         ListSubscriptionsByTopic                                          |
||                                              Subscriptions                                              ||
||  Endpoint       |  +1xx-xx-xx-xx                                                                        ||
||  Owner          |  5762xx665xx1                                                                         ||
||  Protocol       |  sms                                                                                  ||
||  SubscriptionArn|  arn:aws:sns:us-east-1:5762xx665xx1:emailTopic:eeb4f499-exx2-xxba-aexx-3915c1134254   ||
||  TopicArn       |  arn:aws:sns:us-east-1:5762xx665xx1:emailTopic                                        ||

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap