A few days ago AWS released a very much requested feature “ECS exec” - which enables you to “ssh” into one of your containers running in ECS, regardless of if they are running in AWS Fargate or in Amazon EC2. I do want to point out that I agree completely with Massimo - opening a remote shell is quite the anti-pattern of using containers in the first place and is not something that you should be doing in production.