Each SNS topic can have multiple subscribers. Each subscriber may use the same protocols or different protocols. Copy the ARN of the recently-created SNS topic. This step-by-step guide requires you to subscribe to a topic. Subscribers can receive a notification for a desired protocol as and when the publisher sends any message to the same topic. The steps for subscribing to an SNS topic are as follows:
- Go to the SNS dashboard and select Subscriptions, as shown in Figure 13.9:
Figure 13.9: SNS dashboard; select subscriptions
- Click on Create subscription, as shown in Figure 13.10:
Figure 13.10: Create subscription
- A popup will appear, as shown in Figure 13.11. Provide a valid Topic ARN, Protocol, and Endpoint. Finally, click on Create subscription:
Figure 13.11: Create subscription
The fields in the preceding screenshot are explained as follows...