Can not delete transit gateway attachment - cli or console

0

The TWG attachemnt is visible on the console, but canno delete it. aws ec2 describe-transit-gateway-attachments --region us-east-1 --transit-gateway-attachment-ids tgw-attach-0a50c5f5336a71c01 { "TransitGatewayAttachments": [ { "ResourceOwnerId": "23xxx", "TransitGatewayAttachmentId": "tgw-attach-0a50c5f5336a71c01", "ResourceType": "direct-connect-gateway", "ResourceId": "8204dfd2-b0c7-4ae9-bce9-96998a191025", "Tags": [], "CreationTime": "2022-05-13T19:05:16.000Z", "State": "available", "TransitGatewayId": "tgw-0cbf474c3468f6204", "TransitGatewayOwnerId": "231653829444" } ] }

But if I try to delete - I get error aws ec2 delete-transit-gateway-vpc-attachment --transit-gateway-attachment-id tgw-attach-0a50c5f5336a71c01 --region us-east-1

An error occurred (InvalidTransitGatewayAttachmentID.NotFound) when calling the DeleteTransitGatewayVpcAttachment operation: Transit Gateway VPC Attachment tgw-attach-0a50c5f5336a71c01 was deleted or does not exist.

Anyone has any clue?

Partha
質問済み 10ヶ月前313ビュー
1回答
1
承認された回答

Thank you for the details.

As the attachment tgw-attach-0a50c5f5336a71c01 seems to be a DXGW attachment, I'm wondering if TGW tgw-0cbf474c3468f6204 has to be disassociated firstly from the Direct Connect console, following the steps listed here.

AWS
weidi
回答済み 10ヶ月前
profile pictureAWS
エキスパート
レビュー済み 10ヶ月前
  • I gave it a try and was able to delete the attachment by disassociating the TGW from the DXGW. See if it works in your environment.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ