It does not appear that you are exposing SSH access per the code sample above. And ECS has limitations to only allowing one load-balanced port per Service so I expect it may not be simple to extend this to support that unfortunately.
Does your container expose an ssh daemon? That is also not especially common.
a
able-zoo-58396
03/12/2019, 11:10 PM
Hi @white-balloon-205. Thanks for the reply. I have eventually come to the conclusion that this is a Fargate/ECS limitation more than anything, so I'm going to need to rethink how we run our one-off commands (db migrations, etc). Thanks