

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

# 將 Route 53 設定檔與 VPCs建立關聯
<a name="profile-associate-vpcs"></a>

若要將 Route 53 設定檔與 VPC 建立關聯，請遵循本主題中的指示。選擇標籤，使用 Route 53 主控台將 Route 53 設定檔與 VPC 建立關聯，或 AWS CLI。
+ [主控台](#profile-associate-vpcs-console)
+ [CLI](#profile-associate-vpcs-CLI)

------
#### [ Console ]<a name="profile-associate-vpcs-procedure"></a>

**建立 VPCs關聯**

1. 登入 AWS 管理主控台 並開啟 Route 53 主控台，網址為 https：//[https://console.aws.amazon.com/route53/](https://console.aws.amazon.com/route53/)。

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

1. 在 **<設定檔名稱>** 頁面上，選擇 **VPCs**索引標籤，然後選擇**關聯**。

1. 在**關聯 VPCs**頁面上，您最多可以選擇先前建立的 10 VPCs。如果您想要關聯超過 10 VPCs，請使用 APIs。如需詳細資訊，請參閱 [AssociateProfile](https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53profiles_AssociateProfile.html)。

1. 選擇**關聯**

1. 關聯進度會顯示在 **VPCs**頁面上**的狀態**欄中。

------
#### [ CLI ]

您可以執行如下所示的 AWS CLI 命令，並使用您自己的 `name`、 `profile-id`和 值來列出設定檔`resource-id`：

`aws route53profiles associate-profile --name test-association --profile-id rp-4987774726example --resource-id vpc-0af3b96b3example`

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

```
{
    "ProfileResourceAssociation": {
        "CreationTime": 1710851216.613,
        "Id": "rpr-001913120a7example",
        "ModificationTime": 1710851216.613,
        "Name": "test-resource-association",
        "OwnerId": "123456789012",
        "ProfileId": "rp-4987774726example",
        "ResourceArn": "arn:aws:route53resolver:us-east-1:123456789012:firewall-rule-group/rslvr-frg-cfe7f72example",
        "ResourceProperties": "{\"priority\":102}",
        "ResourceType": "FIREWALL_RULE_GROUP",
        "Status": "UPDATING",
        "StatusMessage": "Updating the Profile to DNS Firewall rule group association"
    }
}
```

------