How to Subscribe an endpoint to an Amazon SNS topic on Amazon Web Service(AWS).

Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is HTTP/S or email, or if the endpoint and the topic are not in the same AWS account, the endpoint owner must run the ConfirmSubscription action to confirm the subscription.

When we subscribe an endpoint to a topic, the endpoint begins to receive messages published to the associated topic.

 

  • Login to aws portal.
  • Click on Services.

 

Fig 1

 

  • Under Application Integration select Simple Notification Service.

 

Fig 2

 

  • Select Subscription.

 

Fig. 3

 

  • Click on Create Subscription.

 

Fig. 4

 

  • Select existing Topic ARN.
  • Select Protocol.

 

Fig. 5

 

  • When we select Email as a protocol.
  • Provide Email address that can receive notification from Amazon SNS.

 

Fig. 6

 

  • Click on Subscription filter policy. This policy filter message that a subscriber receives.

 

Fig. 7

 

  • By default Redrive policy is disable. If we needs to send undeliverable message to a dead-letter queue.
  • Click on create subscription.

 

Fig. 8

 

  • After sometime Subscription created successfully.

 

Fig 9

 

Subscribe an endpoint to an Amazon SNS topic

aws sns subscribe –topic-arn arn:aws:sns:us-west-2:123456789012:topic-name  –protocol email –notification-endpoint email@example.com

 

Leave a Reply

Your email address will not be published. Required fields are marked *