- Más nuevo
- Más votos
- Más comentarios
Hi,
Thank you for sharing your inquiry with us. It appears you may be expanding upon this SSM Inventory blog post[1] by modifying the script to suit your needs.
From my investigation, it appears that your script should be valid for creating the inventory file according to our guidelines[2]. As you mention that your script has created the EbsVolumesInventory.json custom inventory file properly, please also validate the following:
-
Confirm that the EbsVolumesInventory.json file is formatted properly by running the contents through a JSON linter.
-
In the Systems Manager Console, open your inventory association, and check the execution history and resources tabs to validate whether the execution for the instance was successful, or if it failed. In the "resources" tabs, you can gather specific output associated with execution which should provide further direction.
-
If it failed, please share the error message here for further investigation.
-
In order to gather more details about the failure message, or to check for agent errors when parsing the JSON document, you can check the SSM agent logs by filtering for the execution ID at the most recent execution time. The relevant log files are located at:
- %PROGRAMDATA%\Amazon\SSM\Logs\ssm-document-worker.log
- %PROGRAMDATA%\Amazon\SSM\Logs\amazon-ssm-agent.log
- %PROGRAMDATA%\Amazon\SSM\Logs\errors.log
Reference:
[2] https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html
Contenido relevante
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 3 años
- ¿Cómo puedo hacer referencia a los parámetros de Systems Manager en los diferentes servicios de AWS?OFICIAL DE AWSActualizada hace un año