aws ssm put-inventory
Bulk update custom inventory items on one or more managed nodes. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To assign customer metadata to an instance
The following put-inventory example assigns rack location information to an instance.
Linux version.
aws ssm put-inventory --instance-id "i-016648b75dd622dab" --items '[{"TypeName": "Custom:RackInfo","SchemaVersion": "1.0","CaptureTime": "2019-01-22T10:01:01Z","Content":[{"RackLocation": "Bay B/Row C/Rack D/Shelf E"}]}]'Identify--instance-idAn managed node ID where you want to add or update inventory items.--itemsThe inventory items that you want to add or update on managed nodes.Windows version.
aws ssm put-inventory ^Identify--instance-id "i-016648b75dd622dab" ^--items "TypeName=Custom:RackInfo,SchemaVersion=1.0,CaptureTime=2019-01-22T10:01:01Z,Content=[{RackLocation='Bay B/Row C/Rack D/Shelf F'}]"This command produces no output.
For more information, see Working with custom inventory in the AWS Systems Manager User Guide.
Options
--instance-idAn managed node ID where you want to add or update inventory items.--itemsThe inventory items that you want to add or update on managed nodes.