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년 전132회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠