將 VPC Resolver 查詢記錄組態與 Route 53 設定檔建立關聯 - Amazon Route 53

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

將 VPC Resolver 查詢記錄組態與 Route 53 設定檔建立關聯

如需如何建立 VPC Resolver 查詢記錄組態的指示,請參閱設定 (VPC Resolver 查詢記錄),然後選擇標籤,使用 Route 53 主控台或 將 VPC Resolver 組態與 Route 53 設定檔建立關聯 AWS CLI。

Console
建立查詢記錄組態的關聯
  1. 登入 AWS 管理主控台 並開啟 Route 53 主控台,網址為 https://https://console.aws.amazon.com/route53/

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

  3. 設定檔名稱頁面上,選擇解析程式查詢日誌組態索引標籤,然後選擇關聯

  4. 關聯查詢記錄組態頁面上,在解析程式查詢日誌組態資料表中,您最多可以選擇先前建立的三個組態。如果您想要關聯超過三個查詢記錄組態,請使用 API。如需詳細資訊,請參閱 AssociateResourceToProfile

  5. 若要建立新的 VPC Resolver 查詢記錄組態,請參閱 設定 (VPC Resolver 查詢記錄)

  6. 選擇關聯

  7. 關聯進度會顯示在解析程式查詢日誌組態索引標籤的狀態欄中。

CLI

您可以執行如下所示的 AWS CLI 命令,並使用您自己的 nameprofile-id和 值,將查詢日誌組態與設定檔建立關聯resource-arn

aws route53profiles associate-resource-to-profile --name test-resource-association --profile-id rp-4987774726example --resource-arn arn:aws:route53resolver:us-east-1:123456789012:resolver-query-log-config/rqlc-cfe7f72example

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

{ "ProfileResourceAssociation": { "CreationTime": 1710851226.613, "Id": "rpr-001913120b8example", "ModificationTime": 1710851226.613, "Name": "test-resource-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceArn": "arn:aws:route53resolver:us-east-1:123456789012:resolver-query-log-config/rqlc-cfe7f72example", "ResourceType": "RESOLVER_QUERY_LOG_CONFIG", "Status": "CREATING", "StatusMessage": "Creating rp-4987774726example to rqlc-cfe7f72example association" } }