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

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

重命名配置记录器

必须使用重 Amazon CLI 命名配置记录器。要更改配置记录器名称,必须将其删除,然后使用您指定的名称创建新的配置记录器。

使用重命名配置记录器 Amazon CLI
  1. 使用 describe-configuration-recorders 命令查找当前配置记录器的名称:

    $ aws configservice describe-configuration-recorders { "ConfigurationRecorders": [ { "roleARN": "arn:aws:iam::012345678912:role/myConfigRole", "name": "default" } ] }
  2. 使用 delete-configuration-recorder 命令删除当前配置记录器:

    $ aws configservice delete-configuration-recorder --configuration-recorder-name default
  3. 使用 put-configuration-recorder 命令创建具有所需名称的配置记录器:

    $ aws configservice put-configuration-recorder --configuration-recorder name=configRecorderName,roleARN=arn:aws:iam::012345678912:role/myConfigRole
  4. 使用 start-configuration-recorder 命令恢复记录:

    $ aws configservice start-configuration-recorder --configuration-recorder-name configRecorderName