We will get familiar with CLI through the SNS service.
To create an SNS topic, we do the following:
aws sns create-topic --name aws-cli

After successfully creating the SNS topic, we subscribe a subscriber with the following command:
aws sns subscribe --topic-arn **ARN Topic** --protocol email --notification-endpoint aws@example.com
Don’t forget to replace ARN Topic with the ARN of the topic you created in the previous step and replace aws@example.com with your email

Check the email you used in the previous command. Then, select Confirm subscription in the email to complete the subscription.

When you have confirmed the subscription, the subscription status will be complete.

After successfully subscribing, we will try pushing a message to test:
aws sns publish --topic-arn **ARN Topic** --message "Hello"
This command sends a message with content "Hello" to all subscribed subscribers.

If everything works correctly, you will receive the sent message via email.
