将 Route 53 配置文件关联到 VPC - Amazon Route 53

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

将 Route 53 配置文件关联到 VPC

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

Console
关联 VPC
  1. 登录 AWS Management Console 并打开 Route 53 控制台,网址为 https://console.aws.amazon.com/route53/

  2. 在导航栏上,选择您创建个人资料的区域。

  3. <Profile name>页面上,选择 VPC 选项卡,然后选择 “关联”。

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

  5. 选择 “关联

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

CLI

您可以通过运行如下 AWS 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" } }