-
Is the SSM agent running in the control container able to inventory the binaries that are on the bottlerocket image? When I look at the inventory for the host in the SSM console, it looks like it's capturing the inventory of the control container rather than the bottlerocket host. How can I configure the agent to read the host's file system? Is that possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'll answer my own question. You need to create an SSM document to inventory specific files/directories on the host. For example: {
"schemaVersion": "2.2",
"description": "Inventory files in /host-root/bin directory",
"parameters": {},
"mainSteps": [
{
"action": "aws:softwareInventory",
"name": "collectFileInventory",
"inputs": {
"files": "[{\"Path\":\"/host-root/bin\",\"Pattern\":[\"*\"],\"Recursive\":false}]"
}
}
]
} After creating the SSM document, you need to associate with an instance or multiple instances. The inventory doesn't include things you actually want, like version numbers or publisher. It only shows the file name and its size. |
Beta Was this translation helpful? Give feedback.
I'll answer my own question. You need to create an SSM document to inventory specific files/directories on the host. For example:
After creating the SSM document, you need to associate with an instance or multiple instances. The inventory doesn't include things you actually want, like version numbers or publisher. It only shows the file name and its size.