run_command
Execute commands on managed instances using SSH with automatic failover to AWS SSM when SSH is unreachable.
Instructions
Run a command on any managed instance. Defaults to SSH with automatic failover to AWS SSM when sshd is unreachable (e.g. under heavy load) on SSM-managed AWS instances.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command to execute. | |
| transport | No | Execution channel. 'auto' (default) tries SSH then falls back to AWS SSM if the SSH connection fails; 'ssh' forces SSH; 'ssm' forces AWS Systems Manager (AWS-only). | auto |
| instance_id | Yes | Instance ID, name, or custom-server name. |