내용으로 건너뛰기

Adding Lightsail Instance to AWS Systems Manager didn't show in Fleet Manager

0

Hello everyone,

I created a new snapshot of a Lightsail instance because unable to access it via SSH in browser or locally in terminal [error code: UPSTREAM_NOT_FOUND [519]]. I followed the directions here to add it to AWS Systems Manager to gain access: https://repost.aws/knowledge-center/add-lightsail-to-systems-manager

However, it doesn't show in Fleet Manager at all. The regions are correct, I copied all the information precisely into the launch script, including the correct activation code and ID. I tried both the generic debian launch script and ubuntu specific one.

Thanks for help

질문됨 3년 전1천회 조회

2개 답변
1
수락된 답변

So, I got in and so I am answering my own question. However, this may not work for everyone. I managed to connect with the person who setup the LightSail instance in question and it seems like they had changed the default SSH port on the server side and so I had to specify the correct port manually when logging in via SSH in a terminal locally.

답변함 3년 전

전문가

검토됨 2년 전

0

I having the same issue. I was about my question then saw yours. I will share some pictures to give more context

My steps

0- Mu LightSail instance ( Ubuntu 22 )

Enter image description here

1- Installing and Running amazon-ssm-agent using snap.

sudo snap install amazon-ssm-agent --classic

sudo snap list amazon-ssm-agent

Enter image description here

2- Connected to AWS system Manager. Enter image description here

3- Fleet Manager is empty Enter image description here

답변함 3년 전

  • Yeah, my issue is the same, except I'm unable to access my Lightsail instance via SSH so I ran the code to add amazon ssm agent via launch script when loading a snapshot of my instance. I've been unable to find an answer in the forums that solved this.

  • Following the instructions in this post should work: https://repost.aws/knowledge-center/add-lightsail-to-systems-manager.

    1. Make sure to specify the correct instance limit while creating the Hybrid activation. You can only register instances until this limit is reached.
    2. Verify that the commands specified include the correct activation code, ID and region.
    3. Also make sure you are using the right commands necessary for the OS running on the instance. More details can be found here: https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-managed-linux.html.

    Another thing to note is that it might take a few minutes for the instance to show up in the fleet management page after it has been registered.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠