Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅
中国的 Amazon Web Services 服务入门
(PDF)。
本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
将 Route 53 配置文件关联到 VPC
要将 Route 53 配置文件与 VPC 关联,请按照本主题中的指导操作。选择一个选项卡,使用 Route 53 控制台将 Route 53 配置文件关联到 VPC,或 Amazon CLI。
- Console
-
- 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"
}
}