查看配置记录器 - Amazon Config
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

查看配置记录器

您可以使用 Amazon Config 控制台或 Amazon CLI 来查看有关配置记录器的详细信息。

To view your configuration recorders (Console)
  1. 登录到,Amazon Web Services 管理控制台然后通过以下网址打开 Amazon Config 控制台:https://console.aws.amazon.com/config/home

  2. 在导航窗格中,选择设置

  3. 对于客户管理的配置记录器,您可以在客户管理的记录器选项卡上查看详细信息。

  4. 对于服务相关配置记录器,在服务相关记录器选项卡上选择服务相关配置记录器,然后选择查看

To view your configuration recorders (CLI)

使用 describe-configuration-recorders 命令查看有关配置记录器的详细信息:

$ aws configservice describe-configuration-recorders { "ConfigurationRecorders": [ { "roleARN": "arn:aws:iam::012345678912:role/myConfigRole", "name": "default" } ] }

使用 describe-configuration-recorder-status 命令查找配置记录器的当前状态:

$ aws configservice describe-configuration-recorder-status { "ConfigurationRecordersStatus": [ { "name": "default", "lastStatus": "SUCCESS", "lastStopTime": 1414511624.914, "lastStartTime": 1414708460.276, "recording": true, "lastStatusChangeTime": 1414816537.148, "lastErrorMessage": "NA", "lastErrorCode": "400" } ] }

对于这两个命令,您可以使用 arnconfiguration-recorder-names 字段来指定配置记录器列表。对于服务相关配置记录器,您可以使用 service-principal 字段来指定配置记录器。

如果未指定配置记录器,则此命令将返回与该账户关联的所有配置记录器的详细信息。