Amazon EC2 · Finder + automated fixer

Install the CloudWatch agent on EC2 instances

InstallCloudwatch Agent

Installing the CloudWatch agent on EC2 instances using AWS Systems Manager.

What happens, in order.

  1. Finder · read-only

    Finds the opportunity

    Scans your connected accounts with a read-only role. It can see resource metadata and usage; it can’t change anything.

  2. You

    Approve in Recommendations

    It appears in your Recommendations view with what it would save. Approve the resources you choose. Nothing has changed yet.

  3. Fixer

    Runs in your account

    The fixer runs as an AWS Systems Manager Automation runbook in your AWS account, and acts only on the resources you approved.

  4. Record

    Logs the execution

    The Systems Manager execution is logged, so every change can be audited.

Finder role

Read-only. It can see resource metadata and usage. It can’t change anything.

Fixer role

A separate, minimal role that acts only on the resources you approved, through AWS Systems Manager.

Why it costs money

Installing the agent lowers no bill directly. It is an enabler for EC2 rightsizing: AWS’s instructions for having Compute Optimizer analyze memory use start with installing the CloudWatch agent, and CloudFix’s memory-metrics article says informed rightsizing decisions need that memory data.

The agent adds a cost of its own. In its classic configuration it publishes metrics to a namespace, CWAgent by default, and CloudWatch bills them as custom metrics.

What to look at

  • Whether the agent is running. AWS’s status check runs the AmazonCloudWatch-ManageAgent document with the status action; a running agent answers “running”.
  • Whether the instance can take an install through Systems Manager. It must be a managed node with a current SSM Agent, its role needs CloudWatchAgentServerPolicy, and it must reach CloudWatch through an internet gateway, a NAT gateway or interface endpoints.
  • Where the configuration will come from. Agents started from Parameter Store read a parameter whose name begins with AmazonCloudWatch-, because CloudWatchAgentServerPolicy can read no other parameters.

What the change does

  • CloudFix installs the CloudWatch agent on EC2 instances through AWS Systems Manager.
  • In AWS’s own procedure for this, Run Command uses AWS-ConfigureAWSPackage to install the AmazonCloudWatchAgent package, and the agent then starts with its configuration through the AmazonCloudWatch-ManageAgent document.
  • The package alone collects nothing. AWS says the configuration file has to exist before the agent starts on any server.
  • Installing and configuring the agent needs no downtime, and the agent can be stopped or removed later.

Sources: AWS: Install the CloudWatch agent using Systems Manager; AWS: Collect metrics, logs and traces with the CloudWatch agent; AWS: Troubleshooting the CloudWatch agent; AWS: Compute Optimizer EC2 metrics; CloudFix support: EC2 missing memory metrics.

See whether this one applies to your account.

A free savings assessment reports which fixers can be applied to your environment. Results typically within 24 hours.