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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠