aws / session-manager-plugin

This plugin helps you to use the AWS Command Line Interface (AWS CLI) to start and end sessions to your managed instances
Apache License 2.0
259 stars 70 forks source link

Plugin with name InteractiveCommands not found. Step name: InteractiveCommands #82

Open ficofer opened 11 months ago

ficofer commented 11 months ago

Hello team sorry for bringing up again on an old thread but I have encounter this issue as well, and killing the task/redeploying/scaling it up and down did not solve the issue. I have a cluster with two services, both with the execute command enable, on service allow me to connect to the tasks, while the other one keep showing me this issue:

aws ecs execute-command  --cluster playground-cluster --task 8b87aeadf34848a195536b7bc0d85e4e --container backend --command "/bin/sh" --interactive --region us-east-2

The Session Manager plugin was installed successfully. Use the AWS CLI to start a session.

Starting session with SessionId: ecs-execute-command-0650eebb6c976fb9d

SessionId: ecs-execute-command-0650eebb6c976fb9d : Plugin with name InteractiveCommands not found. Step name: InteractiveCommands

I have been googling for days but can not find anything related, check-ecs-exec.sh pass with all green.

Any advised will be appreciated.

yui-har commented 1 month ago

In my case, I have 3 services in my cluster. I can connect to one of them, but not the other two.

yui-har commented 4 weeks ago

Around July 10, I changed the EC2 architecture and the ECR Docker images from x86_64 to arm64. I think it was around that time that I was unable to connect.

yui-har commented 1 week ago

When I changed one of the three services to an x86_64 Docker image, I was able to connect to this service with ECS ​​Exec. Currently, I can connect to two services, an arm64 container and an x86_64 container. (I cannot connect to the remaining service because it has not been changed from the arm64 Docker image.)