Making Instances Managed Nodes in Systems Manager
This lesson explains the requirements for a node to be managed by AWS Systems Manager, the first step in troubleshooting, since every Systems Manager capability depends on it.
Learning outcomes
After completing this lesson, you will be able to:
- Identify the three requirements for a managed node.
- Troubleshoot nodes that are not managed.
- Manage instances in isolated subnets with VPC endpoints.
Requirements for a managed node
A node becomes managed when three conditions are met. First, the SSM Agent is installed and running; it is preinstalled on Amazon Linux 2 and 2023, recent Ubuntu and Windows Server AMIs provided by AWS. Second, the agent has permissions: an instance profile role with the AmazonSSMManagedInstanceCore managed policy, or Default Host Management Configuration (DHMC), which lets Systems Manager manage all instances in an account and Region without changing instance profiles, provided IMDSv2 is used. Third, the agent has network access to the ssm, ssmmessages and ec2messages endpoints over HTTPS (port 443) through an internet gateway, NAT gateway or interface VPC endpoints.
On-premises servers and VMs in other clouds are registered with a hybrid activation (an activation code and ID with an IAM service role); they appear with IDs starting with mi-. Managed nodes appear in Fleet Manager, which also offers file system browsing, performance counters, user management and remote desktop for Windows.
The following diagram shows the three conditions and the endpoints needed without internet access.

Becoming a managed node
Troubleshooting nodes that are not managed
When an instance does not appear in Fleet Manager, check the requirements in order. The following list gives the usual causes.
- The instance profile is missing or lacks
AmazonSSMManagedInstanceCore, and DHMC is not enabled. - The instance is in a private subnet without NAT and without interface endpoints for ssm, ssmmessages and ec2messages, or the endpoints' security group blocks 443 from the instance.
- The SSM Agent is stopped, outdated or not installed (custom AMIs).
- Private DNS is disabled on the interface endpoints, so the agent resolves public endpoint addresses it cannot reach.
- IMDS is disabled or the instance cannot reach the metadata service, so the agent cannot obtain credentials.
The AWSSupport-TroubleshootManagedInstance runbook checks these conditions automatically, and the agent log at /var/log/amazon/ssm/amazon-ssm-agent.log shows connection and credential errors.
Missing from Fleet Manager
Managing instances in an isolated subnet
A company runs instances in subnets with no route to the internet. To manage them with Systems Manager it creates interface endpoints for ssm, ssmmessages and ec2messages with private DNS enabled, plus a logs endpoint for Session Manager logging, a kms endpoint for encrypted sessions and an S3 gateway endpoint so the agent can download patches and documents from AWS-owned buckets. The endpoints' security group allows HTTPS from the VPC CIDR. DHMC is enabled for the account so that no instance profile changes are required.
for svc in ssm ssmmessages ec2messages logs kms; do
aws ec2 create-vpc-endpoint --vpc-id vpc-0abc --vpc-endpoint-type Interface \
--service-name com.amazonaws.eu-west-1.$svc --subnet-ids subnet-0a subnet-0b \
--security-group-ids sg-0endpoints --private-dns-enabled
doneWhich ID prefix do on-premises servers receive when registered with a hybrid activation?
Show answer
mi-.
Exam Tips
Remember for the exam
- Managed nodes need the SSM Agent, permissions (instance profile or DHMC) and access to ssm, ssmmessages and ec2messages.
- Private subnets without NAT need interface endpoints with private DNS.
- On-premises servers register with hybrid activations and get mi- IDs.
- Use AWSSupport-TroubleshootManagedInstance to diagnose unmanaged nodes.