View a markdown version of this page

刪除 AWS Site-to-Site VPN 集中器 - AWS Site-to-Site VPN

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

刪除 AWS Site-to-Site VPN 集中器

當您不再需要Site-to-Site VPN 集中器時,您可以將其刪除以停止產生費用。刪除Site-to-Site VPN 集中器會永久移除它以及所有相關聯的組態。

先決條件

刪除Site-to-Site VPN 集中器之前,請確定下列事項:

  • 與Site-to-Site VPN 連線都會遭到刪除。

  • 您擁有刪除Site-to-Site VPN 集中器 () 的必要許可ec2:DeleteVpnConcentrator

使用主控台刪除Site-to-Site VPN 集中器

刪除Site-to-Site VPN 集中器
  1. 開啟位於 https://https://console.aws.amazon.com/vpc/ 的 Amazon VPC 主控台。

  2. 在導覽窗格中,選擇Site-to-Site集中器

  3. 選取您要刪除的Site-to-Site VPN 集中器。

  4. 選擇動作,然後選擇刪除Site-to-Site VPN 集中器

  5. 在確認對話方塊中,輸入 delete 以確認刪除。

  6. 選擇 刪除

使用 CLI 刪除Site-to-Site VPN 集中器

使用 delete-vpn-concentrator命令來刪除Site-to-Site VPN 集中器。您需要 vpn-concentrator-id才能將其刪除。

下列範例會刪除Site-to-Site VPN 集中器:

aws ec2 delete-vpn-concentrator --vpn-concentrator-id vcn-0123456789abcdef0

會傳回下列回應:

{ "VpnConcentrator": { "VpnConcentratorId": "vcn-0123456789abcdef0", "State": "deleting", "Message": "The Site-to-Site VPN Concentrator vcn-0123456789abcdef0 is being deleted and will be removed from your account." } }

使用 API Site-to-Site VPN 集中器

使用 DeleteVpnConcentrator操作來刪除Site-to-Site VPN 集中器。您需要 VpnConcentratorId才能將其刪除。

下列範例會刪除Site-to-Site VPN 集中器:

POST / HTTP/1.1 Host: ec2.region.amazonaws.com Content-Type: application/x-www-form-urlencoded Action=DeleteVpnConcentrator &VpnConcentratorId=vcn-0123456789abcdef0 &Version=2016-11-15

會傳回下列回應:

<?xml version="1.0" encoding="UTF-8"?> <DeleteVpnConcentratorResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId> <vpnConcentrator> <vpnConcentratorId>vcn-0123456789abcdef0</vpnConcentratorId> <state>deleting</state> <message>The Site-to-Site VPN Concentrator vcn-0123456789abcdef0 is being deleted and will be removed from your account.</message> </vpnConcentrator> </DeleteVpnConcentratorResponse>