Request SNS subscription confirmation again via API/SDK
Status quo
When an SNS subscription is still pending confirmation, you can re-send the confirmation via the management console (button: "Request confirmation").
Question
Is it possible to re-send the confirmation request via API/SDK?
Background
We offer our customers to create an SNS subscription for them to an SQS owned by our customer. Therefore, we need our customer to confirm the subscription with the message they receive in their SQS queue. However, the customer has to set up a policy first, that allows our SNS to send messages to their SQS queue (including the first confirmation request message). When the customer forgets to do this first, we would like to offer an API for them to re-send the confirmation request after they have set up the policy for their SQS correctly.
I don't see a direct API call to resent the confirmation, but you can trigger the confirmation again via the sns subscribe call. https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sns/subscribe.html
Relevant questions
Request SNS subscription confirmation again via API/SDK
asked 4 months agoSNS Topic/Subscription created through Terraform not showing up
Accepted Answerasked 3 months agoIs it possible to get a SQS subscription's ARN using CDK?
asked 4 months ago“SubscriptionConfirmation” response header is missing SubscriptionUrl.
asked 3 months agoSNS HTTPS Subscription - Invalid parameter: Unreachable Endpoint
asked 4 months agoHow to delete a email subscription in SNS, I had typo while typing email address?
asked 5 months agoHow to create subscription from an SNS to another SNS
Accepted Answerasked 2 months agoSNS Subscription
asked 6 months agoHow do I delete unconfirmed subscriptions for removed topic?
asked 3 years agoAmazon SNS Topic 'Pending' - not receiving confirmation email
asked 2 months ago
When you make sure that you re-define the subscription exactly the same way (e.g. RedrivePolicy) this works really well. Thanks for your help!