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?

已提問 2 年前檢視次數 131 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南