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?

gefragt vor 2 Jahren134 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen