MGN Migration - Windows \ Linux Test instances - unable to login through SSM

0

As part of MGN Migration Launched Test instances for both Windows \ Linux instances. In Post Launch action template, for both Test and Cutover instances have selected to Install the SSM agent and to create the IAM Roles related to System Manager

But after launching Test instances, unable to connect any of the Test instances through SSM. Even Host configuration is created in SSM but no luck to login to the instances through SSM

SSM Session manager is Not listing the Test instances. Even fully migrated instance (cutover completed) instances also not listed in SSM

When trying to open the Test instance through RDP client its erroring out saying EC2Keypair is not associated with the instance

Is there a way to login to the Test instances in this scenario without keypair & SSM ?

1 Answer
1

You should be able to login to the Test instance using the Local credentials of your source server which is replicating into AWS MGN service.

Once you are logged into the instance, I would suggest running "ssm-cli" diagnostic tool (1) and reviewing the SSM agent logs to identify the reason for SSM issue on the Test instance

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/

Additionally, please also check article (2) to troubleshoot SSM issue.


References:

(1) https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-cli.html

(2) Troubleshoot "ConnectionLost" status - https://repost.aws/knowledge-center/systems-manager-ec2-instance-not-appear

AWS
SUPPORT ENGINEER
Aamir_H
answered a month ago
  • Also, you need to either have VPC endpoint created for SSM service if you want to connect via private link or have Internet connectivity to reach SSM public endpoint.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions