To confirm your Amazon SNS subscription, follow these steps to ensure your endpoint can successfully receive messages. This process involves setting up your endpoint to handle incoming confirmation messages, retrieving the confirmation URL, and confirming the subscription. You can confirm the subscription either automatically or manually, depending on your setup.
-
After subscribing to an Amazon SNS topic, Amazon SNS sends a confirmation message to your endpoint. This message contains a
SubscribeURL
that you must use to confirm the subscription. -
Your endpoint must be set up to listen for incoming messages from Amazon SNS. When the confirmation message arrives, extract the
SubscribeURL
from the message. -
Once you have the
SubscribeURL
, you can confirm the subscription in one of two ways:-
Automatic confirmation – Your endpoint can automatically confirm the subscription by sending an HTTP GET request to the
SubscribeURL
.This method does not require manual intervention.
-
Manual confirmation – If automatic confirmation is not set up, copy the
SubscribeURL
from the confirmation message and paste it into your browser’s address bar.This will confirm the subscription manually.
-
-
You can also verify the subscription status using the Amazon SNS console:
Sign in to the Amazon SNS console
. -
In the navigation pane, choose Subscriptions.
-
Find your subscription in the list.
-
If confirmed, the
SubscriptionArn
will be displayed. -
If still unconfirmed, it will show as
PendingConfirmation
.
-