Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECS Fargate] [Bug]: after exec into ecs container inputs are not accepted in terminal #2193

Open
aldenbe opened this issue Nov 3, 2023 · 1 comment

Comments

@aldenbe
Copy link

aldenbe commented Nov 3, 2023

After running ecs execute-command using aws cli seemingly randomly but quite frequently key inputs do not register within the container shell session.

Operating system: Windows 11

AWS cli versions tested where issue occurs:
- aws-cli/2.8.6 Python/3.9.11 Windows/10 exe/AMD64 prompt/off
- aws-cli/2.13.26 Python/3.11.6 Windows/10 exe/AMD64 prompt/off
- aws-cli/2.13.32 Python/3.11.6 Windows/10 exe/AMD64 prompt/off

Command:

aws ecs execute-command  \
    --region <region> \
    --cluster  <cluster>  \
    --task <task> \
    --container <container> \
    --command "/bin/sh" \
    --interactive

Response:

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


Starting session with SessionId: ecs-execute-command-<id>
<WORKDIR> #

This is where the issue occurs. Frequently no further inputs are accepted past this point. I am unable to determine any pattern between occurrences of this issue. I have tested this in powershell, command prompt, and cygwin. Across all three opening a new terminal each time, pasting the same exact command and making no further inputs until the connection completes.

This issue has persisted across fresh windows installs on one computer (desktop using wired keyboard and mouse). When testing on a separate computer (laptop using integrated keyboard and mouse) the issue does still occur with no inputs but extremely rarely, however inputs are no longer accepted after connection 100% of the time when inputs are made during connection process, this does not seem to effect the issue on the desktop which will often register inputs made while connecting within the shell after connection.

@er1kv
Copy link

er1kv commented May 13, 2024

For Windows, go to the Windows Defender Firewall, and add a rule that allows the "session-manager-plugin.exe" to accept inbound connections.
I had exactly the same behaviour as you, but problem was solved after dealing with the FW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants