We can make use of the aws sns publish command on the AWS CLI to send a message to an AWS SNS topic.
Example:
% aws sns publish
--topic-arn arn:aws:sns:us-east-1:107xx89xx9xx:smsTopic
--message "Learning AWS SNS"
-------------------------------------------------------
| Publish |
+-----------+-----------------------------------------+
| MessageId| 141997xx-8c80-5bxx-8ff3-cacxx6xx7508 |
+-----------+-----------------------------------------+

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!