View a markdown version of this page

在 Transit Gateway 中取消傳輸 AWS 閘道政策表的關聯 - Amazon VPC

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

在 Transit Gateway 中取消傳輸 AWS 閘道政策表的關聯

取消政策資料表與傳輸閘道連接的關聯。

重要

移除關聯後,附件沒有與其相關聯的路由表或政策表。所有傳入流量都會捨棄,直到您將附件與路由表或新政策表建立關聯為止。

使用主控台取消政策資料表的關聯
  1. 在 https://console.aws.amazon.com/vpc/ 開啟 Amazon VPC 主控台。

  2. 在導覽窗格的傳輸閘道下,選擇傳輸閘道政策表,然後選取政策表。

  3. 選擇 Associations (關聯) 標籤。

  4. 選取您要移除的關聯。

  5. 選擇刪除關聯。

  6. 在確認對話方塊中,檢閱政策資料表 ID 和附件 ID。確認警告:移除此關聯會停用來自此附件之流量的政策型路由。所有來自此附件的輸入流量都會遭到捨棄,直到您將其與路由表或新政策表建立關聯為止。選擇 刪除。

成功橫幅隨即出現:已成功從 {tgw-attach-id} 刪除關聯。

使用 取消政策資料表的關聯 AWS CLI

使用 disassociate-transit-gateway-policy-table 命令。

aws ec2 disassociate-transit-gateway-policy-table \ --transit-gateway-policy-table-id tgw-ptb-0ca78a549EXAMPLE \ --transit-gateway-attachment-id tgw-attach-0def6EXAMPLE

回應範例。關聯會轉換為 disassociating 狀態:

{ "Association": { "TransitGatewayPolicyTableId": "tgw-ptb-0ca78a549EXAMPLE", "TransitGatewayAttachmentId": "tgw-attach-0def6EXAMPLE", "State": "disassociating" } }