Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to SSH into FARGATE managed container instances?

I use to connect to EC2 container instances following this steps, https://docs.aws.amazon.com/AmazonECS/latest/developerguide/instance-connect.html wondering how I can connect to FARGATE-managed container instances instead.

like image 351
Stefano Messina Avatar asked Sep 13 '18 09:09

Stefano Messina


People also ask

Can you SSH into ECS container?

Amazon ECS container instances have no password, and you use a key pair to log in using SSH.

Is fargate fully managed?

Since Fargate is a serverless compute engine, customers do not need to manage the underlying compute instances running in Fargate.


1 Answers

Looking on that issue on github https://github.com/aws/amazon-ecs-cli/issues/143 I think it's not possible to make docker exec from remote host into container on ECS Fargate. You can try to run ssh daemon and your main process in one container using e.g. systemd (https://docs.docker.com/config/containers/multi-service_container/) and connect to your container using SSH but generally it's not good idea in containers world.

like image 125
Jakub Bujny Avatar answered Sep 21 '22 19:09

Jakub Bujny