How do I delete unconfirmed subscriptions for removed topic?

0

That's as follow-up to my previous inquire (the one ignored by AWS staff).

How do I actually remove the HTTP(S) subscription(s) that can't be confirmed?

SNS pretends to send requests to confirm the subscriptions (pretends, sicne Web servers register NO requests from whatever IPs to the URLs in question; firewall registers NO connections from SNS IP ranges), and it began to cost me money (even though small one).

I removed the test topic, but subscriptions still remain (??), SNS still imitates the confirmation requests, but began to charge me for them!

When topic is removed, how do I remove its unconfirmed subscriptions?

已提问 4 年前2972 查看次数
5 回答
1

The support person responded:

Kindly note that when deleting SNS Subscriptions, pending confirmations cannot be deleted. After 3 days, it is automatically deleted by the Amazon SNS team.

In other words, if something goes wrong with SNS service, the "undead" subscriptions will raise count of attempts (regardless of whether they actually call your URL or not), raising your invoice. If it's SNS issue, it will still be your problem. How extremely nice!

It's obviously and definitely wrong, there should be a means to remove runaway subscriptions immediately.

已回答 4 年前
0

Have you tried deleting a subscription using this command:

https://docs.aws.amazon.com/cli/latest/reference/sns/unsubscribe.html

已回答 4 年前
0

It doesn't work.

The problem subscriptions are unconfirmed. As such, they have no valid ARNs: insetad of ARN, "PendingConfirmation" is displayed. If I try using "PendingCOnfirmation" in aws command call, error is returned:

"An error occurred (InvalidParameter) when calling the Unsubscribe operation: Invalid parameter: SubscriptionArn Reason: An ARN must have at least 6 elements, not 1"

Hence, AWS efficiently prevents me from removing the subscriptions (meanwhile, they are increasing calls count, and I can do absolutely nothing about that).

已回答 4 年前
0

Hi @temmokan,

Apologies for the inconveniences. Are you currently still facing this issue?

We now have an updated AWS SNS blog that explains why by default orphaned subscriptions can't be deleted and possible resolution steps. The take away point from the above blog is that :

*If an Amazon SNS topic has subscriptions that are in the Deleted or Pending Confirmation status when you delete the topic, the subscriptions can't be removed from your account manually. You must wait three days for Amazon SNS to automatically remove the subscriptions from your account. *

  • If after 3 days your orphaned subscription is not automatically detected please contact AWS Support so that the orphaned subscriptions can be deleted manually.

Should you have any follow-up questions related to this reported issue feel free to let us know by clicking the comment button.

AWS
aksyuma
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则