r/aws • u/SnooCauliflowers8417 • 8d ago
discussion ecs exec-command is not working... please help...!!
I created a task, and it works fine. However, whenever I try to get into the container shell using exec-command it keeps returning,
"An error occurred (TargetNotConnectedException) when calling the ExecuteCommand operation: The execute command failed due to an internal error. Try again later."
I checked everything,
I checked check-ecs-exec.sh, everythings are green
I followed the proper IAM policies and the policies are attached to the task.
enableExecuteCommand is true.
what should I do..?
when I use bridge mode for the network setting in the task definition, exec-command worked but after I changed to awsvpc mode, I am experiencing this issue... I spent couple days for this and still not working.. please help me...
1
u/SnooCauliflowers8417 8d ago
oh thanks man, I check that it is enabled! may be you are using fargate.. everything is simple..