Sep 1, 2021
Latest Fargate feature release now support using Amazon ECS Exec to access your containers on AWS Fargate and Amazon EC2.
Please find the details through below link. So no more need to do such complex setting, if the purpose of the ssh to container is to run some basic commands.