- Newest
- Most votes
- Most comments
In order for instances to get managed by Systems Manager (SSM), there are few prerequisites which needs to be met:
- SSM Agent is installed and running
- Connectivity to SSM endpoints over port 443
- Connectivity to IMDS (instance metadata)
- IAM role attached with sufficient permissions
If the two instances went into "ConnectionLost" state (1), then I would suggest validating above prerequisites.
If all of the above prerequisites are met, then you can run "ssm-cli" diagnostic tool (2) and review the agent logs to identify the reason for "ConnectionLost" status.
SSM-CLI Tool:-
(-) Windows : & 'C:\Program Files\Amazon\SSM\ssm-cli.exe' get-diagnostics --output table
(-) Linux : ssm-cli get-diagnostics --output table
SSM Agent logs:-
(-) Windows : %PROGRAMDATA%\Amazon\SSM\Logs\
(-) Linux : /var/log/amazon/ssm/
References:-
(1) https://repost.aws/knowledge-center/systems-manager-ec2-instance-not-appear
(2) https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-cli.html
Relevant content
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago