Open ganeshgk opened 8 months ago
I struggled with a similar problem for hours, and running the ECS task with --enable-execute-command
fixed the problem for me. ECS services can also be configured to spawn their tasks with that flag on.
This is really weird since nothing on https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-troubleshooting.html mentioned this flag, and SSM and ECS Exec not exactly the same thing AFAICS.
Anyway, I hope this helps.
Thanks for reaching out. Did above answer solve the issue you had? If not, can you please provide the below information for further investigation?
I have ECS running with Fargate launchtype: the containers are running successfully, however to troubleshoot/debug an issue I tried the AWS ECS Exec, however while trying with the https://github.com/aws-containers/amazon-ecs-exec-checker all checks are passed, it only shows in red
Since there are many reports of ECS Exec not working & based on this comment https://github.com/aws/amazon-ssm-agent/issues/361#issuecomment-1007335151 I tried using the
aws ssm start-session --target ecs:.... but it throws TargetNotConnected error,
so my questions is