檢視與 Amazon Route 53 設定檔相關聯的 VPCs - Amazon Route 53

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

檢視與 Amazon Route 53 設定檔相關聯的 VPCs

選擇主控台索引標籤,以檢視和編輯 Route 53 設定檔與 VPC 的關聯。選擇 CLI 索引標籤 AWS CLI 以列出設定檔與 VPC 關聯,或取得特定關聯的相關資訊

Console
檢視與設定檔相關聯的 VPCs
  1. 登入 AWS Management Console ,並在 https://https://console.aws.amazon.com/route53/ 開啟 Route 53 主控台。

  2. 在導覽窗格中,選擇設定檔

  3. 在導覽列上,選擇您建立設定檔的區域。

  4. 選取您要檢視相關聯 VPCs 之設定檔名稱旁的按鈕。

  5. <Profile name> 頁面上,選擇 VPCs索引標籤。

  6. 在 VPCs的索引標籤頁面上,您可以檢視相關聯 VPCs 的名稱、ARN 和狀態。

CLI

您可以執行如下所示的 AWS CLI 命令,列出與設定檔相關聯的 VPCs:

aws route53profiles list-profile-associations

以下是您執行 命令之後的範例輸出:

{ "ProfileAssociations": [ { "CreationTime": 1709338817.148, "Id": "rpassoc-489ce212fexample",{ "ProfileAssociations": [ { "CreationTime": 1709338817.148, "Id": "rpassoc-489ce212fexample", "ModificationTime": 1709338974.772, "Name": "test-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceId": "vpc-0af3b96b3example", "Status": "COMPLETE", "StatusMessage": "Created Profile Association" } ] } "ModificationTime": 1709338974.772, "Name": "test-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceId": "vpc-0af3b96b3example", "Status": "COMPLETE", "StatusMessage": "Created Profile Association" } ] }

您可以執行如下所示的 AWS CLI 命令,並使用您自己的 值,以取得與設定檔相關聯的特定 VPS 相關資訊profile-association-id

aws route53profiles get-profile-association --profile-association-id rpassoc-489ce212fexample

以下是您執行 命令之後的範例輸出:

"ProfileAssociation": { "CreationTime": 1709338817.148, "Id": "rrpassoc-489ce212fexample", "ModificationTime": 1709338974.772, "Name": "test-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceId": "vpc-0af3b96b3example", "Status": "COMPLETE", "StatusMessage": "Created Profile Association" } ] }

取消 VPC 與 Amazon Route 53 設定檔的關聯

選擇標籤,使用 Route 53 主控台取消 Route 53 設定檔與 VPC 的關聯,或 AWS CLI。

Console
取消關聯與 Route 53 設定檔相關聯的 VPC
  1. 登入 AWS Management Console ,並在 https://https://console.aws.amazon.com/route53/ 開啟 Route 53 主控台。

  2. 在導覽窗格中,選擇設定檔

  3. 在導覽列上,選擇您要取消 VPC 關聯之設定檔的建立區域。

  4. 選取您要取消 VPC 關聯之設定檔名稱旁的按鈕。

  5. <Profile name> 頁面上,選擇 VPCs索引標籤。

  6. 在資源VPCs 索引標籤頁面上,選擇您要取消關聯的 VPC,然後選擇取消關聯的 VPC。

  7. 取消關聯資源對話方塊中,輸入 confirm,然後選擇取消關聯

CLI

您可以執行如下所示的 AWS CLI 命令,並使用您自己的 和 值,來取消設定檔與 VPC profile-id的關聯--resource-id

aws route53profiles disassociate-profile --profile-id rp-4987774726example --resource-id vpc-0af3b96b3example

以下是您執行 命令之後的範例輸出:

"ProfileAssociation": { "CreationTime": 1710851336.527, "Id": "rpassoc-489ce212fexample", "ModificationTime": 1710851401.362, "Name": "test-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceId": "vpc-0af3b96b3example", "Status": "DELETING", "StatusMessage": "Deleting Profile Association" }