カスタマー管理設定レコーダーの名前変更 - AWS Config

カスタマー管理設定レコーダーの名前変更

カスタマー管理設定レコーダーの名前を変更するには、AWS CLI を使用する必要があります。そのためには、まずカスタマー管理設定レコーダーを削除し、指定した名前で作成し直す必要があります。

AWS 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