When I restart instance, SSM is connected. but after a few minute, SSM isn't connected.(Target Not Connected)

0

When I restart instance, SSM is connected. but after a few minute, SSM is connected.(Target Not Connected) How can I debug and solve this problem?

質問済み 2年前1222ビュー
2回答
0
profile pictureAWS
エキスパート
回答済み 2年前
0

Could you please check if SSM agent is installed. I am not sure which OS you are using. Please also make sure you are using AWS CLI v2.

Hence here is the link that might help https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent.html -- [1]

Check if all the steps are performed and also if the SSM installed on the instance is not out of date. You can discover this by trying to start the session from Systems Manager in the AWS console; basically going to Systems Manager->Fleet Manager->{INSTANCE_ID}->Instance Actions->Start Session It will throw an error if it is out of date.

https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html -- [2]

As mentioned in the link below, this error is also returned if you attempt to start a session on a managed node that is located in a different AWS account or AWS Region.

https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-troubleshooting.html#ssh-target-not-connected [3]

Once you verify the same, please check if the instances have the proper outbound connectivity? (Outbound to some AWS services including ec2messages.region.amazonaws.com, ssm.region.amazonaws.com, ssmmessages.region.amazonaws.com

profile pictureAWS
サポートエンジニア
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ