Skip to content

SSM Inventory #4539

Closed Answered by jicowan
jicowan asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jicowan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant