Skip to content

SNS email subscription getting deleted immediately

0

I have create an SNS topic so I can get notifications for billing alerts, cloudwatch alarms and other events. I have added my personal GMail email as a subscription, I get an email to confirm the subscription and I follow the link to confirm the subscription. After a few seconds if I refresh the subscription the ID is now Deleted and soon after I get an unsubscribed email notification to my inbox. I'm not changing anything after I confirm, so why is this subscription being automtically deleted?

asked 2 years ago3.1K views

3 Answers
1

Hello.

Is the "Unsubscribe" event recorded in the CloudTrail event history?
If the event is recorded, I think you can identify who unsubscribe it.
If you are unsubscribing by clicking on the URL, it will not be recorded in CloudTrail, but if you are unsubscribing from the management console or AWS API, I think the event will be recorded in CloudTrail.
So, if the event is recorded in CloudTrail, you can check whether there is something configured in AWS that automatically cancels the subscription.
Also, did you accidentally click on the unsubscribe URL?
https://docs.aws.amazon.com/sns/latest/dg/sns-logging-using-cloudtrail.html

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • Hi Riku, I'm not unsubscribing. There's no cloudtrail event. I can repeat this problem over and over, delete the subscription and add again, every time the subscription gets automatically deleted without me doing anything.

    Is my personal email, so it's not someone else unsubscribing.

1

It appears GMail was automatically unsubscribing me. I followed this post to manually confirm the subscription in the console and the subscription has not been deleted: https://repost.aws/knowledge-center/prevent-unsubscribe-all-sns-topic

answered 2 years ago

0

I encountered a similar issue where Gmail automatically unsubscribed any email address I added to the SNS topic subscription from the SNS console.

To fix this, you need to manually verify the subscription instead of using the verification link in the email. Here’s how you can do it:

  1. Copy the subscription verification URL from the email you received.
  2. Open the SNS Subscriptions section in the AWS Management Console.
  3. Select the pending email subscription by clicking its radio button.
  4. Choose Confirm Subscription, then paste the copied URL.
  5. Click Submit to complete the verification.
AWS
MODERATOR

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.