Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

AWS Systems Manager hybrid activation: server registered but not listed as a managed node

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

If a server outside AWS was set up with a hybrid activation and is missing from Fleet Manager, the usual suspects are these five: the activation could not be used, the agent registered in a different Region from the one you are viewing, the agent is not running, the node cannot reach the Systems Manager endpoints on port 443, or the agent's machine fingerprint no longer matches. The documented check for registration is aws ssm describe-instance-associations-status --instance-id <node-id>, and until registration succeeds it returns "InstanceAssociationStatusInfos": []. The read-only checks below separate these causes before anything is changed.

What the symptom means

A hybrid activation produces an Activation Code and an Activation ID. You give both to ssm-setup-cli (or to the agent's -register option) on the server, and the agent registers itself. AWS says the node then becomes a managed node, and in the console hybrid-activated nodes are identified by the prefix mi-, where EC2 instance IDs use i-.

For a node to be listed, AWS's availability page gives three requirements: SSM Agent installed and running on a supported operating system; an IAM service role for a non-EC2 machine (an instance profile applies only to EC2); and a working connection to a Systems Manager endpoint. After registration, "the managed node must be available to the service, which is confirmed by the service sending a signal every five minutes to check the instance's health". The page adds that a node whose status has been Connection Lost for at least 30 days might drop out of the Fleet Manager list until the cause is fixed.

Two facts explain most "registered but missing" cases. First, an activation is only a window for registering machines. AWS states that an expired activation "has no impact on your servers or VMs that you previously registered", but no further machines can register with it. Second, for hybrid nodes the agent builds a hardware fingerprint when it registers. If the current machine attributes no longer match the stored ones, the call that obtains the role token fails, and AWS says "This failure is by design".

Version note: AWS states that from 30 June 2026 the advanced-instances tier is removed, so the old 1,000-instance limit no longer applies to hybrid nodes. A missing node is not a tier problem.

Likely causes

Cause What you see How to confirm
Activation expired or registration limit reached New servers never appear; earlier ones are fine aws ssm describe-activations shows Expired true, or RegistrationsCount equal to RegistrationLimit
Role trust policy missing ssm.amazonaws.com The activation was never created create-activation printed ValidationException ... Not existing role
Viewing the wrong Region Node is online but the console list is empty The Region in ssm-setup-cli -region or the registration file differs from the console Region
Agent not installed or not running No registration, or no heartbeat systemctl status, Get-Service AmazonSSMAgent, or ssm-cli get-diagnostics reports the agent service
No HTTPS path to the endpoints, or a wrong proxy Registration hangs or the node shows Connection Lost ssm-cli get-diagnostics connectivity rows fail; agent log shows errors
Server certificate trust missing TLS error when calling the endpoint curl -L https://ssm.<region>.amazonaws.com returns an SSL/TLS error instead of UnknownOperationException
Fingerprint mismatch (machine ID does not persist, hardware change) Log line ends MachineFingerprintDoesNotMatch: Fingerprint doesn't match Agent error log; compare machine ID before and after a reboot
Cloned VM or deregistered node Duplicate or missing mi- entry Compare describe-instance-information with the machines you expect
Role lacks Systems Manager permissions Credentials check fails ssm-cli get-diagnostics row "AWS Credentials"

Prove the cause before changing anything

Everything in this section only reads. Substitute your own Region and IDs.

1. Look at the activation (from a workstation with the AWS CLI configured).

aws ssm describe-activations --region ap-southeast-2

The command reference documents the fields RegistrationLimit, RegistrationsCount, ExpirationDate and Expired. A good result is Expired false and a RegistrationsCount below RegistrationLimit. AWS notes that you can reregister an existing machine with the same code and ID only while the limit is not reached. A bad result is Expired true, or the two counts equal.

2. List the hybrid nodes the service knows about.

aws ssm describe-instance-information --region ap-southeast-2 --filters Key=ResourceType,Values=ManagedInstance

ResourceType accepts EC2Instance or ManagedInstance, and PingStatus is Online or ConnectionLost. A good result lists your node with an mi- ID and Online. If the node is absent here but present in another Region, you were looking in the wrong Region. The call does not return nodes that are Stopped or Terminated.

3. Check registration for one node ID.

aws ssm describe-instance-associations-status --instance-id mi-0123456789abcdef0

AWS says this command "doesn't return results until a successful registration has taken place". An empty InstanceAssociationStatusInfos list after about five minutes sends you to the node.

4. On the server, is the agent running?

On Amazon Linux, Debian, Oracle Linux, RHEL and SLES: sudo systemctl status amazon-ssm-agent. On Ubuntu with the Snap package: sudo systemctl status snap.amazon-ssm-agent.amazon-ssm-agent.service. On Windows Server, in PowerShell: Get-Service AmazonSSMAgent. A good result is a running service.

5. Run the agent's own diagnostics (SSM Agent 3.1.501.0 or later).

sudo ssm-cli get-diagnostics --output table

On Windows, change to C:\Program Files\Amazon\SSM first and run .\ssm-cli.exe get-diagnostics --output table. The table has one row per check. AWS says connectivity to the s3, kms, logs and monitoring endpoints "is not required for a node to appear in your managed nodes list", so a failure on those rows is not the cause. The ssm-cli page groups ssmmessages with optional features such as Session Manager, while AWS's endpoint page says managed nodes must also allow HTTPS (port 443) outbound to ec2messages.* and ssmmessages.*. Look first at the ssm and ec2messages rows, the credentials row and the agent service row. A failed "AWS Credentials" row means no valid service role or missing permissions. A failed "Agent service" row means the service is not running or not running as root (Linux) or SYSTEM (Windows). On Windows, "Windows sysprep image state" must be IMAGE_STATE_COMPLETE or the agent will not start.

6. Test TLS to the endpoint.

curl -L https://ssm.ap-southeast-2.amazonaws.com

AWS says this should return an UnknownOperationException error, and that an SSL/TLS error means the required certificate might not be installed. Accepted certificates are Amazon Root CA 1, Starfield Services Root Certificate Authority - G2 and Starfield Class 2 Certificate Authority.

7. Read the agent log. Linux and macOS: /var/log/amazon/ssm/. Windows: %PROGRAMDATA%\Amazon\SSM\Logs\. On Windows the registration file also names the Region and node ID:

Get-Content ($env:ProgramData + "\Amazon\SSM\InstanceData\registration")

The vendor shows output of the form {"ManagedInstanceID":"mi-...","Region":"us-east-2"}. Compare that Region with the Region in your console.

Fix

Activation unusable: create a new one

AWS says an expired or full activation cannot register more machines and that you "simply need to create a new one". The activation code is shown once; AWS warns that if you lose it you must create a new activation.

First save the current list of activations:

aws ssm describe-activations --region ap-southeast-2 --output json > activations-before.json

Risk: the next command creates a new activation code and ID that lets any machine holding them register as a managed node in your account until it expires or reaches its limit. Keep the output private.

Create it with a short expiry and a limit equal to the number of servers you are registering. The role must already exist and trust ssm.amazonaws.com; the expiry must be a future date no more than 30 days away, and without one the code expires in 24 hours:

aws ssm create-activation --default-instance-name web01 --iam-role SSMServiceRole --registration-limit 1 --region ap-southeast-2 --expiration-date "2026-12-08T00:00:00"

The Activation Code and ID in the output are what AWS's ssm-setup-cli registration steps for hybrid Linux and Windows Server nodes ask for, with the same Region. Registration is not given here as a step, because AWS documents no undo for it other than deregistering.

To undo it: delete the new activation using the ID that create-activation returned. AWS notes that this stops further registrations but does not deregister nodes that already used it.

aws ssm delete-activation --activation-id <activation-id> --region ap-southeast-2

Agent installed but stopped

First save the current state:

sudo systemctl is-active amazon-ssm-agent > ssm-agent-state-before.txt

Disruptive step: the next command starts SSM Agent on this server, which begins contacting Systems Manager and accepting remote commands that your IAM policies allow.

Start the agent. This is the command for systemd distributions that use the amazon-ssm-agent service; the start commands for Ubuntu with Snap and for Windows are on AWS's status page listed in the sources:

sudo systemctl start amazon-ssm-agent

To back out: read the saved file.

cat ssm-agent-state-before.txt

Run the next command only if the saved file shows inactive; it stops the service again.

sudo systemctl stop amazon-ssm-agent

Endpoints, proxy and certificates

AWS's endpoint page says managed nodes need outbound HTTPS (port 443) to the Region's ssm, ec2messages and ssmmessages endpoints. Opening that path is a firewall change made under your own change process; it is not given here as a step. AWS describes setting a proxy for the agent in a systemd override file with http_proxy, https_proxy and no_proxy settings. The override path differs by distribution: /etc/systemd/system/amazon-ssm-agent.service.d/override.conf on Amazon Linux 2, Amazon Linux 2023 and RHEL, and a different file name on other systems. That change needs a daemon-reload and an agent restart. Missing certificates are installed from Amazon Trust Services, or managed by group policy where a GPO controls the trust store.

Fingerprint mismatch or conflicting registrations

AWS's troubleshooting section for MachineFingerprintDoesNotMatch: Fingerprint doesn't match says the error appears when the machine ID does not persist after a reboot, and its fix is umount /etc/machine-id followed by systemd-machine-id-setup. That changes the machine's identity and has no documented undo, so it is not given here as a step; read the vendor's Linux installation page first. For other fingerprint changes, the agent supports a lower similarity threshold (the documented example is sudo amazon-ssm-agent -fingerprint -similarityThreshold 1), which makes matching more lenient.

For a cloned VM, AWS says to deregister the original node before registering the clone to avoid registration conflicts. A deregistered node cannot be brought back by the agent alone: the vendor's route is to remove the registration data on the node (the IdentityConsumptionOrder key and amazon-ssm-agent -register -clear) and register again with an activation that has capacity. Deregistration is not shown here as a command because it cannot be undone from the node.

Example (illustrative): web01 (203.0.113.30) was registered with an activation created for one machine (RegistrationLimit 1). A week later, an engineer builds a separate server, web02 (203.0.113.31), installs the agent and tries the same code and ID. describe-activations shows RegistrationLimit 1 and RegistrationsCount 1, so web02 cannot register and never appears in describe-instance-information. The engineer creates a new activation with a limit of 1 (saving the old list first), registers web02 in the same Region, and confirms that describe-instance-information now lists two mi- nodes, both Online.

Confirm the fix

  1. aws ssm describe-instance-information --region <region> --filters Key=ResourceType,Values=ManagedInstance lists the node with PingStatus Online.
  2. aws ssm describe-instance-associations-status --instance-id <mi-id> returns entries, not an empty list.
  3. ssm-cli get-diagnostics --output table shows the ssm and ec2messages endpoints, the credentials and the agent service as Success.
  4. The node appears under Fleet Manager, Managed nodes, with an mi- ID.

What to watch afterwards

  • Activations expire after 24 hours unless you set a date, so create them just before a rollout.
  • Filter on PingStatus ConnectionLost: a node in that state for 30 days or more might drop out of the Fleet Manager list.
  • Do not clone a registered VM without deregistering the original first.
  • If hardware, network cards or the machine ID change on a hybrid node, expect the fingerprint check to fail.

Risks and limits

  • These commands have not been run or lab-tested.
  • AWS describes an agent "hibernation" mode (reduced contact with the service) after a deregistration or a fingerprint change, but gives no version range for it. Treat PingStatus as one signal alongside the log, diagnostics and association checks.
  • AWS documents no Region check for hybrid nodes. Compare the Region in the Windows registration file, or the -region value used at registration, with the --region of the list call and the console Region.
  • Creating an activation and registering nodes grants machines access to your account; follow your own change approvals.
  • Pricing is AWS's to state; check the current Systems Manager pricing page.

Sources