How To Create AWS System Manager Inventory

How To Create AWS System Manager Inventory

How To Create AWS System Manager Inventory

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed how to auto-update AWS SSM agent using SSM state manager.

https://cloudaffaire.com/how-to-auto-update-aws-ssm-agent-using-ssm-state-manager/

In this blog post, we will discuss how to create AWS System Manager Inventory.

What Is Inventory In AWS System Manager:

AWS Systems Manager Inventory provides visibility into your Amazon EC2 and on-premises computing environment. You can use Inventory to collect metadata from your managed instances. You can store this metadata in a central Amazon Simple Storage Service (Amazon S3) bucket, and then use built-in tools to query the data and quickly determine which instances are running the software and configurations required by your software policy, and which instances need to be updated. You can configure Inventory on all of your managed instances by using a one-click procedure. You can also configure and view inventory data from multiple AWS Regions and accounts. If the pre-configured metadata types collected by Systems Manager Inventory don’t meet your needs, then you can create custom inventory.

Inventory Metadata:

  • Applications: Application names, publishers, versions, etc.
  • AWS components: EC2 driver, agents, versions, etc.
  • Files: Name, size, version, installed date, modification and last accessed times, etc.
  • Network configuration: IP address, MAC address, DNS, gateway, subnet mask, etc.
  • Windows updates: Hotfix ID, installed by, installed date, etc.
  • Instance details: System name, operating systems (OS) name, OS version, last boot, DNS, domain, work group, OS architecture, etc.
  • Services: Name, display name, status, dependent services, service type, start type, etc.
  • Tags: Tags assigned to your instances.
  • Windows Registry: Registry key path, value name, value type, and value.
  • Windows roles: Name, display name, path, feature type, installed state, etc.
  • Custom inventory: Metadata that was assigned to a managed instance.

Resource Data Sync for Inventory:

You can use Systems Manager resource data sync to send inventory data collected from all of your managed instances to a single S3 bucket. Resource data sync then automatically updates the centralized data when new inventory data is collected. With all inventory data stored in a target S3 bucket, you can use services like Amazon Athena and Amazon QuickSight to query and analyze the aggregated data.

How To Create AWS System Manager Inventory:

Requirements:

AWS CLI installed and configured. You can follow the below blog post to install and configure AWS CLI.

https://cloudaffaire.com/how-to-install-aws-cli/

https://cloudaffaire.com/how-to-configure-aws-cli/

Step 1: Create an EC2 SSM Managed Instance.

Step 2: Create a new SSM state manager association to gather inventory data.

Step 3: Get SSM state manager association details for inventory.

Step 4: Get SSM inventory details.

Step 5: Create a resource data sync for your inventory.

Step 6: Cleanup.

Hope you have enjoyed this blog post, to get more details on AWS SSM, please refer below AWS documentation

https://docs.aws.amazon.com/systems-manager/index.html

 

Leave a Reply

Close Menu