Understanding Managed Nodes and Session Manager
AWS Systems Manager is a collection of capabilities for operating servers and AWS resources at scale. Every node-level capability depends on the node being managed, which requires the SSM Agent, permissions and network connectivity. This lesson explains how nodes become managed, including EC2 instances, on-premises servers and the Default Host Management Configuration, and how Session Manager replaces SSH and bastion hosts.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the main Systems Manager capabilities and how they are grouped.
- Explain the three requirements for a node to be managed: the SSM Agent, IAM permissions and connectivity.
- Describe how Default Host Management Configuration and hybrid activations bring nodes under management.
- Explain how Session Manager provides audited shell and port-forwarding access without inbound ports.
What Systems Manager Provides
Systems Manager groups its capabilities by purpose. Node tools act on servers: Fleet Manager, Session Manager, Run Command, State Manager, Patch Manager, Inventory, Compliance, Distributor and hybrid activations. Change management tools include Automation, Maintenance Windows and Change Calendar. Application tools include Parameter Store and AWS AppConfig. Operations tools include Explorer and OpsCenter, which aggregate operational data and work items. Quick Setup configures common capabilities across accounts and Regions in an organisation, and the unified Systems Manager console shows node status across the organisation from a delegated administrator account.
Most of Systems Manager has no additional charge for EC2; charges apply to some features, such as advanced parameters, advanced hybrid nodes and some Automation steps. The exam tests Systems Manager mainly as the tool for automating configuration, patching, inventory and remediation across large fleets.
Requirements for a Managed Node
A managed node is any machine that Systems Manager can manage. Three things must be in place, and a node that does not appear in Fleet Manager is missing at least one of them.
1. The SSM Agent
The SSM Agent runs on the node, polls Systems Manager for work and executes it. It is preinstalled on many AWS-provided AMIs, including Amazon Linux, Ubuntu Server and Windows Server, and it can be installed on other images. The agent should be kept current, for example with a State Manager association that runs AWS-UpdateSSMAgent.
2. Permissions
The agent must authenticate to Systems Manager. On EC2, this is normally an instance profile with the AWS managed policy AmazonSSMManagedInstanceCore. Alternatively, Default Host Management Configuration (DHMC) is an account- and Region-level setting that makes Systems Manager provide credentials to every EC2 instance through an IAM role that you designate, without an instance profile. DHMC requires IMDSv2 and a recent agent version, and it lets new instances become managed without changing their launch configuration. Quick Setup can enable DHMC across an organisation.
3. Connectivity
The agent makes outbound HTTPS connections to the Systems Manager endpoints ssm, ssmmessages and ec2messages in the Region. Nodes in private subnets need a NAT gateway or interface VPC endpoints for these services, plus endpoints for any other service used, such as S3 for output and patches, CloudWatch Logs and KMS. No inbound connections are needed.
The table below links common symptoms to the missing requirement.
| Symptom | Likely cause |
|---|---|
| Instance never appears in Fleet Manager | No instance profile or DHMC, agent missing or stopped, or no route to the ssm endpoints |
| Instance appears, but Session Manager fails to connect | No connectivity to ssmmessages, or KMS permissions missing for session encryption |
| Commands run, but output upload fails | Instance profile lacks S3 or CloudWatch Logs permissions, or no S3 endpoint |
| Instance shows Connection Lost | Agent stopped, instance stopped or network path removed |
The following diagram shows the three requirements.

Why is the node missing?
Hybrid and Multicloud Nodes
Servers outside AWS, such as on-premises machines, edge devices and virtual machines in other clouds, become managed nodes through a hybrid activation. An administrator creates an activation, which produces an activation code and ID and is associated with an IAM service role. The SSM Agent is installed on each server and registered with the code and ID; the server then appears with an ID beginning mi- and uses the service role's permissions. Hybrid nodes are available in a standard tier and an advanced tier, which is charged and is required beyond 1,000 hybrid nodes per account and Region. Once registered, hybrid nodes can use Run Command, State Manager, Patch Manager, Inventory and Session Manager like EC2 instances, which gives a single operational model for hybrid environments.
Session Manager
Traditional server access needs SSH or RDP ports open, key pairs distributed and bastion hosts maintained, and it is hard to audit. Session Manager provides interactive shell access through the SSM Agent's outbound connection, so instances need no inbound ports, no public IP addresses, no bastion hosts and no SSH keys. Access is controlled entirely by IAM: a policy allowing ssm:StartSession on specific instances, optionally restricted by tags such as ssm:resourceTag/Environment, decides who can connect to what.
Session Manager preferences configure auditing and security for every session in a Region. Session activity can be logged to an S3 bucket and to CloudWatch Logs, sessions can be encrypted with a KMS key, idle sessions time out, sessions can run as a specific operating system user mapped from the IAM identity, and shell profiles can run commands at session start. Every StartSession call is recorded in CloudTrail. Session Manager also supports port forwarding, including to a remote host such as an RDS database reachable from the instance, and SSH and SCP tunnelled through Session Manager for tools that need them.
Session Manager in exam scenarios
When a scenario asks how to remove bastion hosts, close port 22 or audit every command administrators run on instances, the answer is Session Manager with session logging to S3 or CloudWatch Logs.
Bringing a Fleet Under Management
An organisation has 3,000 EC2 instances in private subnets across 40 accounts and 200 on-premises servers. Only some instances appear in Systems Manager, administrators use bastion hosts and SSH keys, and the security team wants every administrative session recorded.
-
Credentials
Use Quick Setup to enable Default Host Management Configuration in every account and Region, so all instances with IMDSv2 and a current agent become managed without editing instance profiles.
-
Connectivity
Add interface endpoints for ssm, ssmmessages and ec2messages, and an S3 gateway endpoint, to each VPC, or centralise endpoints in a shared VPC.
-
Agent currency
Create a State Manager association that runs AWS-UpdateSSMAgent every two weeks.
-
On-premises
Create a hybrid activation and register the 200 servers with the agent.
-
Access
Configure Session Manager preferences with logging to a central S3 bucket and KMS encryption, grant ssm:StartSession by tag, and remove bastion hosts and inbound port 22 rules.
An instance in a private subnet with no NAT gateway has an instance profile with AmazonSSMManagedInstanceCore and a running SSM Agent, but it does not appear as a managed node. What is missing?
Show answer
Connectivity. The agent cannot reach the Systems Manager endpoints; interface VPC endpoints for ssm, ssmmessages and ec2messages (or a NAT gateway) are needed.
Exam Tips
Remember for the exam
- A managed node needs the SSM Agent, permissions (AmazonSSMManagedInstanceCore instance profile or Default Host Management Configuration) and outbound connectivity to ssm, ssmmessages and ec2messages.
- DHMC makes EC2 instances managed without instance profiles; it requires IMDSv2.
- Hybrid activations register on-premises and other-cloud servers as mi- managed nodes.
- Session Manager removes inbound ports, bastions and SSH keys; IAM controls access and sessions can be logged to S3 and CloudWatch Logs and encrypted with KMS.