Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅
中国的 Amazon Web Services 服务入门
(PDF)。
将 Route 53 配置文件关联到 VPC
要将 Route 53 配置文件与 VPC 关联,请按照本主题中的指导操作。选择一个选项卡,使用 Route 53 控制台或 Amazon CLI 将 Route 53 配置文件关联到 VPC。
- Console
-
关联 VPC
登录 Amazon Web Services 管理控制台,并通过以下网址打开 Route 53 控制台:https://console.aws.amazon.com/route53/。
在导航栏上,选择您在其中创建了配置文件的区域。
-
在 <配置文件名称> 页面上,选择 VPC 选项卡,然后选择关联。
在关联 VPC 页面上,最多可以选择 10 个之前创建的 VPC。如果想关联 10 个以上 VPC,请使用 API。有关更多信息,请参阅关联配置文件。
-
选择关联
-
关联进度显示在 VPC 页面的状态列中。
- CLI
-
您可以通过运行如下 Amazon 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"
}
}