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.
Syntax:
aws sns list-subscriptions-by-topic --topic-arn <topic-arn>
Example:
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!
More Posts related to AWS,
- Create S3 bucket and upload files using AWS Toolkit for Visual Studio Code
- Get the total size and number of objects of a AWS S3 bucket and folders
- Create an S3 bucket in a specific AWS region using CLI Command
- [Solution] AWS Java SDK S3 AmazonS3Exception InvalidAccessKeyId
- Fix AWS CLI 2 SignatureDoesNotMatch Error - Signature we calculated does not match
- 573 List of reserved keywords in AWS DynamoDB
- Quick way to setup AWS DynamoDB locally on macOS
- [Solution] com.amazonaws.dynamodb.v20120810 MissingAuthenticationToken Key Id or X.509 certificate
- Quick way to install AWS CLI for macOS Terminal
- Setting and Updating AWS CLI Configuration
- AWS S3 CLI BucketAlreadyExists when calling CreateBucket Error make_bucket failed
- How to install AWS Toolkit for Visual Studio Code
- Create S3 bucket using AWS CLI Command mb
- Fix: zsh: command not found: aws (Mac/macOS)
- How to install AWS CLI on Ubuntu
- Fix: Amazon Linux bash: sudo: command not found
- How to Setup AWS Credentials using Visual Studio Code
- AW3 CLI command to get list of all region names
- Most Essencial AWS CLI 2 S3 ls Command Options
- Install AWS CLI using Brew Command
More Posts:
- Notepad++ Mark and Copy feature - NotepadPlusPlus
- What is FCM Messages Test Notification! [Microsoft Teams] [Google Hangouts] - Microsoft
- How to ignore files in git using .gitignore file - Git
- Java SE 8 Update 301 available with various bug fixes and security improvements - Java
- How to Upload Video to YouTube from Android - Android
- Java: Convert Char to ASCII - Java
- Java 8 java.util.Function and BiFunction Examples - Java
- How to SFTP to port different than 22 (SFTP Custom port) - FTP