I am trying to delete a subscription to an SNS topic (specifically an email address) that is unconfirmed, but the AWS console won't let me. It will let me delete subscriptions that are confirmed however. Any ideas?
我正在尝试删除未经证实的SNS主题(特别是电子邮件地址)的订阅,但AWS控制台不允许我这样做。它会让我删除已确认的订阅。有任何想法吗?
4 个解决方案
#1
2
I have seen email subscriptions hanging around indefinitely in the PendingConfirmation state and as you mention, they can't be deleted using the web console. Also, after a few days the link in the subscription confirmation email expires, so you can't click to confirm the subscription and then delete it either.
我已经看到电子邮件订阅在PendingConfirmation状态中无限期地挂起,正如您所提到的,它们无法使用Web控制台删除。此外,几天后订阅确认电子邮件中的链接将过期,因此您无法单击以确认订阅,然后将其删除。
However, assuming you still have access to the email address, you can create a new subscription in the web console for the SNS topic using the same email address. This doesn't actually result in a separate subscription as it seems that an email address can only be subscribed once. However, it does send another email with a new confirmation link which you can click to confirm the subscription. Once it's confirmed, you can finally delete the subscription in the SNS web console.
但是,假设您仍然可以访问电子邮件地址,则可以使用相同的电子邮件地址在Web控制台中为SNS主题创建新订阅。这实际上不会导致单独的订阅,因为看起来电子邮件地址只能订阅一次。但是,它会发送另一封带有新确认链接的电子邮件,您可以单击该链接以确认订阅。一旦确认,您最终可以在SNS Web控制台中删除订阅。
#2
1
I had the problem with an unconfirmed SQS subscription. When deleting the pending subscription, resubscribing the queue resulted in the awkward state that it was subscribed with the deleted pending subscription so no messages would be delivered.
我遇到了未经证实的SQS订阅问题。删除待处理的订阅时,重新订阅队列会导致尴尬的状态,即它已使用已删除的待定订阅进行订阅,因此不会传递任何消息。
I fixed that by setting up a subscription in the topic's account which triggered a new confirmation message to be send. Once the subscription was confirmed (manually), it replaced the deleted pending subscription and the queue received messages again. Also, the subscription could be fully removed without the deleted pending subscription reappearing.
我通过在主题帐户中设置订阅来修复此问题,该订阅触发了要发送的新确认消息。一旦确认(手动)订阅,它就会替换已删除的待定订阅和队列再次收到的消息。此外,可以完全删除订阅,而不会再次显示已删除的待处理订阅。
No idea if a similar approach would work for email subscriptions.
不知道类似的方法是否适用于电子邮件订阅。
#3
0
I don't think you can, but they should disappear after 3 days if they are not confirmed....so you may just need to wait.
我不认为你可以,但如果他们没有得到证实,他们应该在3天后消失......所以你可能只需要等待。
#4
0
If it doesn't disappear after 3 days, try resending the confirmation request by selecting the subscription and clicking "Request confirmations." This will retrigger the 3-day countdown for automatic removal, and it should be removed after 3 days if the subscription is still not confirmed.
如果3天后没有消失,请尝试通过选择订阅并单击“请求确认”重新发送确认请求。这将重新触发自动删除的3天倒计时,如果订阅仍未确认,则应在3天后删除。