How do I recreate a "Deleted" Amazon SNS topic subscription for an Amazon SQS queue in another AWS account?

Last updated: 2020-03-02

My Amazon Simple Queue Service (Amazon SQS) queue in one AWS account was subscribed to an Amazon Simple Notification Service (Amazon SNS) topic in another account. I deleted the cross-account subscription, and its status is now "Deleted". How do I recreate that subscription?

Short Description

When you call the Amazon SNS Subscribe API, the AWS account that you use becomes the owner of the subscription. If you delete the subscription by calling the Amazon SNS Unsubscribe API from another account that doesn't own the subscription, the subscription goes into a "Deleted" state for 72 hours.

During that time, the subscription owner account can't resubscribe the same endpoint to the respective SNS topic. After 72 hours, Amazon SNS clears the "Deleted" subscription and you can resubscribe as before.

Note: It's a best practice to run Subscribe and Unsubscribe API calls from the same AWS account.


Note: This resolution also applies to HTTP/S endpoint subscribers. However, it doesn't apply to AWS Lambda function subscribers.

If you don't want to wait 72 hours, recreate the subscription by doing any of the following:

  • In the UnsubscribeConfirmation message sent to the SQS queue after you deleted the subscription, find the SubscribeURL. Send an HTTP GET request to the SubscribeURL. For example:
curl -X GET ""
  • Call the Subscribe API from the AWS account that owns the SNS topic. Then, have a user with permissions to read messages from the queue confirm the subscription.
  • Create a new SNS topic to replace the current topic, then subscribe the SQS queue to the new topic.