本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
查看 VPCs 与 Amazon Route 53 个人资料相关的内容
选择控制台选项卡,查看和编辑 Route 53 配置文件与 VPC 的关联。选择 CLI 选项卡, AWS CLI 用于列出配置文件与 VPC 的关联,或者获取有关特定关联的信息
- Console
-
查看 VPCs 与配置文件关联的内容
登录 AWS Management Console 并打开 Route 53 控制台,网址为https://console.aws.amazon.com/route53/
。 -
在导航窗格中,选择配置文件。
-
在导航栏上,选择您在其中创建了配置文件的区域。
-
选择要查看其关联的配置文件名称旁边的按钮 VPCs。
-
在<Profile name>页面上选择VPCs选项卡。
-
在的选项卡页上, VPCs 您可以查看关联人员的姓名、ARN 和状态。 VPCs
- CLI
-
你可以通过运行如下 AWS CLI 命令来列出与之关联的配置文件: VPCs
aws route53profiles list-profile-associations
以下是运行此命令后的示例输出。
{ "ProfileAssociations": [ { "CreationTime": 1709338817.148, "Id": "rpassoc-489ce212fexample",{ "ProfileAssociations": [ { "CreationTime": 1709338817.148, "Id": "rpassoc-489ce212fexample", "ModificationTime": 1709338974.772, "Name": "test-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceId": "vpc-0af3b96b3example", "Status": "COMPLETE", "StatusMessage": "Created Profile Association" } ] } "ModificationTime": 1709338974.772, "Name": "test-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceId": "vpc-0af3b96b3example", "Status": "COMPLETE", "StatusMessage": "Created Profile Association" } ] }
您可以运行如下 AWS CLI 命令并对
profile-association-id
使用自己的值,从而获取与此配置文件关联的特定 VPC 的信息:aws route53profiles get-profile-association --profile-association-id
rpassoc-489ce212fexample
以下是运行此命令后的示例输出。
"ProfileAssociation": { "CreationTime": 1709338817.148, "Id": "rrpassoc-489ce212fexample", "ModificationTime": 1709338974.772, "Name": "test-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceId": "vpc-0af3b96b3example", "Status": "COMPLETE", "StatusMessage": "Created Profile Association" } ] }
取消 VPC 与 Amazon Route 53 配置文件的关联
选择一个选项卡,使用 Route 53 控制台将 Route 53 配置文件与 VPC 断开关联,或者。 AWS CLI
- Console
-
取消与 Route 53 配置文件关联的 VPC 的关联
登录 AWS Management Console 并打开 Route 53 控制台,网址为https://console.aws.amazon.com/route53/
。 -
在导航窗格中,选择配置文件。
-
在导航栏上,选择要取消 VPC 关联的配置文件的创建区域。
-
选择要取消 VPC 关联的配置文件名称旁边的按钮。
-
在<Profile name>页面上选择VPCs选项卡。
在资源的 VPCs 选项卡页上,选择要取消关联的 VPC,然后选择取消关联。
在取消资源关联对话框中,键入
confirm
,然后选择取消关联。
- CLI
您可以通过运行如下 AWS CLI 命令并使用自己的值来解除配置文件与 VPC 的
profile-id
关联:--resource-id
aws route53profiles disassociate-profile --profile-id
rp-4987774726example
--resource-idvpc-0af3b96b3example
以下是运行此命令后的示例输出。
"ProfileAssociation": { "CreationTime": 1710851336.527, "Id": "rpassoc-489ce212fexample", "ModificationTime": 1710851401.362, "Name": "test-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceId": "vpc-0af3b96b3example", "Status": "DELETING", "StatusMessage": "Deleting Profile Association" }