Unable to remove SNS subscription

0

I can't remove an SNS subscription

I already have tried the options described in this links

https://aws.amazon.com/premiumsupport/knowledge-center/sns-invalid-parameter-error-api-call/ https://aws.amazon.com/premiumsupport/knowledge-center/sns-cannot-delete-topic-subscription/ https://repost.aws/questions/QURO0Hgy8vTfe95rKT_cIT2Q/how-do-i-delete-unconfirmed-subscriptions-for-removed-topic

But my situation is different. Is a SNS Subscription with "Confirmed" status but without ARN

SNS Subscription

aws sns list-subscriptions show the subscription with "Deleted" SubscriptionArn

$ aws sns list-subscriptions

{
    "Subscriptions": [
        {
            "SubscriptionArn": "Deleted",
            "Owner": "111111111111",
            "Protocol": "email",
            "Endpoint": "foo@bar.com",
            "TopicArn": "arn:aws:sns:us-east-1:111111111111:foobar"
        }
    ]
}

Recreate the SNS Topic ant delete it again not delete the subscription

Maybe the problem was created by aws-nuke, but I'm not sure. https://github.com/rebuy-de/aws-nuke

The error show in the console is

Couldn't delete subscription. Error code: InvalidParameter - Error message: Invalid parameter: SubscriptionArn Reason: An ARN must have at least 6 elements, not 1

I assume that is trying to pass "Deleted" as ARN

Something like:

aws sns unsubscribe --subscription-arn Deleted
An error occurred (InvalidParameter) when calling the Unsubscribe operation: Invalid parameter: SubscriptionArn Reason: An ARN must have at least 6 elements, not 1

Any ideas?

asked 4 months ago39 views
No Answers

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.

Guidelines for Answering Questions