Lesson 5 of 5 AWS Systems Manager

Tracking Inventory, Compliance and Operational Issues

This lesson explains how Systems Manager Inventory, Compliance and OpsCenter show what is installed where, whether nodes comply with policies and which operational issues are open.

Learning outcomes

After completing this lesson, you will be able to:

  • Collect inventory and sync it to S3.
  • Report patch and association compliance.
  • Manage operational issues as OpsItems.

Inventory and resource data sync

Inventory collects metadata from managed nodes: installed applications, AWS components, network configuration, Windows updates, services, files, registry keys and custom inventory. It is configured as a State Manager association (often through Quick Setup) and queried in the console. A resource data sync sends inventory and compliance data from many accounts and Regions to one S3 bucket, where Athena can query it, for example to find every instance running a vulnerable version of a library.

The following diagram shows inventory from many accounts reaching one bucket.

Finding software across accounts. Inventory, configured as a State Manager association, collects installed applications and other metadata from managed nodes. A resource data sync sends inventory and compliance data from many accounts and Regions to one S3 bucket, where Athena finds every instance running a vulnerable version.
The query is illustrative. The sync keeps the bucket current as inventory changes.
Scenario questions

Inventory questions

Exam skills 3.2.1 · 4.2.5

Use Inventory and its integrations to answer fleet questions.

Log in to try this activity Interactive activities are free with an account.

Compliance

Systems Manager Compliance answers whether managed nodes are in the state the organisation requires. It reports two built-in compliance types: patch compliance, from Patch Manager scans that compare installed patches with the patch baseline, and association compliance, from State Manager associations that enforce configurations such as installed agents. Custom compliance types can be reported through the PutComplianceItems API for checks of the organisation's own. Each item is compliant or non-compliant with a severity, so operators can find, for example, every node missing a critical patch.

Results can be aggregated across accounts and Regions with a resource data sync, and AWS Config managed rules, such as ec2-managedinstance-patch-compliance-status-check, evaluate the same data. Operational compliance and configuration compliance therefore appear together in AWS Config and Security Hub.

OpsCenter

OpsCenter is the place to view, investigate and resolve operational issues, called OpsItems. CloudWatch alarms, EventBridge rules, AWS Config and Security Hub can create OpsItems automatically, and each OpsItem collects related resources, CloudTrail events, AWS Config changes and suggested Automation runbooks that an operator can run from the OpsItem. Duplicate OpsItems are deduplicated with a string. OpsCenter can be used across accounts through a delegated administrator. AWS Systems Manager Incident Manager, which provided on-call paging and response plans, is closed to new customers, so new designs combine OpsCenter with partner paging tools or AWS DevOps Agent investigations.

True or false

OpsCenter

Exam skills 1.2.3 · 3.2.1

Check facts about OpsCenter and OpsItems.

Log in to try this activity Interactive activities are free with an account.
Worked example

Finding vulnerable software

A critical vulnerability is announced in OpenSSL 3.0.x. The operations team uses an Athena query over the resource data sync bucket to list every managed node, in all 25 accounts, whose inventory includes the affected package version. They then run Patch Manager's Install operation against those nodes in an emergency maintenance window and confirm in Compliance that the nodes report the patched version.

Check yourself

How can inventory from many accounts be queried with Athena?

Show answer

Use resource data sync to centralise inventory and compliance data in an S3 bucket.

Exam Tips

Remember for the exam

  • Inventory collects installed software and configuration from managed nodes.
  • Resource data sync centralises inventory and compliance in S3 for Athena queries.
  • OpsCenter collects OpsItems from alarms, EventBridge and Config with suggested runbooks.
  • Incident Manager is closed to new customers; use OpsCenter plus paging tools.