SSM

Running commands on managed instances through Systems Manager: ssm:SendCommand and Session Manager shells under the instance's role.

1 phút đọccập nhật 7 thg 10, 2026florianamette1 người đóng góp
Hỏi trợ lý của bạn (MCP)Sửa trên GitHub

AWS Systems Manager (SSM) is a legitimate remote-administration channel, and it is one of the cleanest ways to run code on EC2 from the API alone. Any instance running the SSM agent with a role that allows it is reachable: no SSH key, no open port, no touching the metadata service. Command execution lands as root or SYSTEM, which then yields the instance role and on-host secrets.

What folds in here#

  • Run command: ssm:SendCommand to execute commands on one or many managed instances.
  • Session Manager: ssm:StartSession to open an interactive shell.

Finding managed instances#

bash
aws ssm describe-instance-information --query 'InstanceInformationList[].InstanceId'

References#