aws ssm get-connection-status
Retrieves the Session Manager connection status for a managed node to determine whether it is running and ready to receive Session Manager connections. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To display the connection status of a managed instance
The following get-connection-status example returns the connection status of the specified managed instance.
aws ssm get-connection-status --target i-1234567890abcdef0Identify--targetThe managed node ID.Its output
{
"Target": "i-1234567890abcdef0",
"Status": "connected"
}For more information, see AWS Systems Manager Session Manager in the AWS Systems Manager User Guide.
Options
--targetThe managed node ID.