Search code examples
amazon-web-servicesamazon-ecs

AWS ECS execute-command ... ""/bin/sh" doesn't error but doesn't start up a shell?


I'm trying to ssh/connect to my container via the ecs execute command

This is the complete command I'm running

aws --region us-west-2 ecs execute-command --cluster .... --task ... --container ...  --interactive --command "/bin/sh"

This command doesn't give me any errors but it doesn't open up a shell to the container. It gives no output.

Does anyone have any suggestions for debugging this?


Solution

  • Ecs execute-command doesn't give any output

    but to debug this kind of issue further, you can run this ECS checker - https://github.com/aws-containers/amazon-ecs-exec-checker

    After I ran this, I determined that the session manager plugin was installed incorrectly