[ECS Fargate] [Bug]: after exec into ecs container inputs are not accepted in terminal
- Dominant language
- Shell
- Stars
- 5.4k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
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 \
--cluster \
--task \
--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-
#
```
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.
Contributor guide
Research direction
Start by reproducing the issue with the documented aws ecs execute-command command on Windows 11, testing PowerShell, Command Prompt, and Cygwin. Compare sessions where input fails after connection, including input during connection, across the listed AWS CLI versions; done means identifying a reliable trigger and restoring terminal input or clearly documenting the affected conditions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, powershell, shell
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100