Is it possible to SSH into FARGATE managed container instances?

后端 未结 3 1006
孤街浪徒
孤街浪徒 2020-12-17 07:47

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 conne

3条回答
  •  不思量自难忘°
    2020-12-17 08:06

    It is possible, but not easy.straight forward. Shortly: install SSH, don't expose ssh port out from VPC, add bastion host, SSH through bastion.

    A little bit more details:

    • spin up SSHD with password-less authentication. Docker instructions
    • Fargate Task: Expose port 22
    • Configure your VPC, instructions
    • create EC2 bastion host
    • From there SSH into your Task's IP address

提交回复
热议问题