hoangquyy
hoangquyy

Reputation: 2063

Error when using EC2 Instance Connect in the instance was created from Cluster ECS

I want to connect to EC2 instance that I have created in ECS Cluster with EC2 Instance Connect but it always show same error.

There was a problem connecting to your instance

Log in failed. If this instance has just started up, wait a few minutes and try again. Otherwise, ensure the instance is running on an AMI that supports EC2 Instance Connect.

My EC2 instance meet all the requirements to use EC2 Instance Connect (amzn2-ami-ecs-hvm-2.0.20210520-x86_64-ebs) and I have tried with or without SSH key pair assign to instance but all of them show the same error as above.

Anyone know why? Thanks for advance.

Upvotes: 1

Views: 1551

Answers (1)

Marcin
Marcin

Reputation: 238051

I don't think EBS-optmized AMIs come with EC2 instance connect. You have to install it yourself after you establish traditional SSH connection to it, or through a user data:

sudo yum install ec2-instance-connect

Upvotes: 1

Related Questions