# aws ssm > Securely interact with and manage AWS resources. > Note: Interactive sessions require the Session Manager plugin to be installed. > More information: . - Run commands on instances: `aws ssm send-command --instance-ids {{instance_id1 instance_id2 ...}} --document-name "AWS-RunShellScript" --parameters 'commands=["{{command}}"]'` - Check command invocations on an instance: `aws ssm list-command-invocations --instance-id "{{instance_id}}"` - Check command output for a specific command invocation: `aws ssm list-command-invocations --command-id "{{command_id}}" --details` - Start an interactive session with an instance: `aws ssm start-session --target "{{instance_id}}"` - Start a port forwarding session to a remote host: `aws ssm start-session --target "{{instance_id}}" --document-name "AWS-StartPortForwardingSessionToRemoteHost" --parameters '{"portNumber":["{{remote_port}}"],"localPortNumber":["{{local_port}}"]}'`