View a markdown version of this page

将 Route 53 配置文件关联到 VPC - Amazon Route 53
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

将 Route 53 配置文件关联到 VPC

要将 Route 53 配置文件与 VPC 关联,请按照本主题中的指导操作。选择一个选项卡,使用 Route 53 控制台将 Route 53 配置文件关联到 VPC,或 Amazon CLI。

Console
关联 VPC
  1. 登录 Amazon Web Services 管理控制台 并打开 Route 53 控制台,网址为https://console.aws.amazon.com/route53/。

  2. 在导航栏上,选择您在其中创建了配置文件的区域。

  3. 在 <配置文件名称> 页面上,选择 VPC 选项卡,然后选择关联。

  4. 在关联 VPC 页面上,最多可以选择 10 个之前创建的 VPC。如果想关联 10 个以上 VPC,请使用 API。有关更多信息,请参阅 AssociateProfile。

  5. 选择关联

  6. 关联进度显示在 VPC 页面的状态列中。

CLI

您可以通过运行如下 Amazon CLI 命令并将自己的值用于nameprofile-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" } }