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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南