CmdID

CmdID / aws / aws ssm

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

2 in the AWS CLI reference
--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.