Stop SNS from sending emails

0

I had a Lambda function send a test message to an SNS topic to be emailed to two email addresses. It somehow created an infinite loop, and I'm getting 10-20 emails per minute. I deleted the Lambda function and the SNS topic, but the emails keep coming. The SNS topic's subscriptions to the two emails cannot be deleted because they are listed as "Pending confirmation". I tried deleting and unsubscribing them with CLI, but it says that it cannot delete or unsubscribe subscriptions that are "Pending confirmation." Any suggestions on how to stop these emails?

1回答
1

The problem was created by "an SNS triggering the Lambda function and the Lambda function publishing to the same SNS topic. For example, SNSTopicOne => LambdaFunction => SNSTopicOne."

Apparently, according to AWS support, the email messages were put into queue before I deleted the Lambda function and it just took a long time for the queue to be cleared. Support may have cleared the queue manually at some point. Nice to have this resolved since I received a few thousand emails!

kparker
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ