- Ensure the SSM Agent is available on the instances
- Use Quick Setup to provision instance profiles and roles
- Verify IAM roles and network connectivity
- Connect to instances using Session Manager
- Run a Run Command document to create a user across multiple instances
SSM Agent — install and verify
For Systems Manager to manage an EC2 instance, the SSM Agent must be installed and running. AWS provides OS-specific guidance in the “Working with SSM Agent” documentation.
Amazon Linux 2 and Amazon Linux 2023 AMIs typically include the SSM Agent by default. For other distributions, follow the AWS guide to install and configure the agent: https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent.html
Quick Setup — automate host management
Quick Setup simplifies onboarding instances into Systems Manager by creating the necessary IAM roles, instance profiles, and associations. From the Systems Manager console, choose Quick Setup and pick the “Default Host Management Configuration”. The default configuration includes typical maintenance tasks:


Verify IAM role and policies
Quick Setup creates and attaches an IAM role to the instance. You can verify the instance’s role from the EC2 console: Actions → Security → Modify IAM role.
AmazonSSMManagedInstanceCore and AmazonSSMPatchAssociation.

Network requirements
Systems Manager communicates using HTTPS (port 443). Ensure instances have outbound access to SSM endpoints for your region:- ssm.region.amazonaws.com
- ssmmessages.region.amazonaws.com
- ec2messages.region.amazonaws.com
If instances are in private subnets without outbound connectivity to the SSM endpoints, the SSM Agent cannot reach AWS Systems Manager and management features (Session Manager, Run Command, Inventory, etc.) will not work.
Verify registration — Fleet Manager and EC2
After SSM registration, confirm managed instances are online in Systems Manager → Node Management → Fleet Manager. You can also view managed instances from the EC2 console and connect using Session Manager. Session Manager provides an interactive shell without requiring SSH or a public IP.
Managing configuration at scale — Run Command
For repetitive or broad-scope tasks (installing packages, creating users, running scripts), use Systems Manager Run Command. Run Command lets you execute documents across many managed instances simultaneously. The console includes a library of AWS-provided and custom SSM Documents. Open Systems Manager → Node Management → Run Command to browse available documents.

- Username: KodeKloud
- Description: KodeKloud account
- Create home directory: Yes
- Perform action: Yes

kodekloud entry confirms the document created the user on both managed instances.
Quick reference
Further reading and docs
- AWS Systems Manager documentation: https://docs.aws.amazon.com/systems-manager/latest/userguide/
- Quick Setup: https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-quick-setup.html
- Session Manager: https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html
- Run Command: https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-run-command.html