重命名客户管理的配置记录器
必须使用 AWS CLI 重命名客户管理的配置记录器。要更改客户管理的配置记录器的名称,您必须删除该配置记录器,然后使用指定名称创建一个新配置记录器。
使用 AWS CLI 重命名客户管理的配置记录器
-
使用
describe-configuration-recorders命令查找当前客户管理的配置记录器的名称:$ aws configservice describe-configuration-recorders { "ConfigurationRecorders": [ { "roleARN": "arn:aws:iam::012345678912:role/myConfigRole", "name": "default" } ] } -
使用
delete-configuration-recorder命令删除客户管理的当前配置记录器:$ aws configservice delete-configuration-recorder --configuration-recorder-namedefault -
使用
put-configuration-recorder命令创建具有所需名称的客户管理的配置记录器:$ aws configservice put-configuration-recorder --configuration-recorder name=configRecorderName,roleARN=arn:aws:iam::012345678912:role/myConfigRole -
使用
start-configuration-recorder命令恢复记录:$ aws configservice start-configuration-recorder --configuration-recorder-nameconfigRecorderName