localstack / localstack/awscli-local

On Windows 11 the terminal proprt apears before the prints

Open
#89 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.3k
Forks
94
PR merge metrics
No merged PRs in 30d

Description

It's a bit hard to explain the issue I'm facing so adding a print screen:
![image](https://github.com/user-attachments/assets/d867c570-3fcf-4753-9555-5257914036d7)

You can see that I get a prompt for the next command before the `awslocal` command has finished running.
This causes several issues when we have several inputs to enter one after another like the `configure` command of aws cli, in case I want to enter credentials.

![image](https://github.com/user-attachments/assets/15145e68-f2ee-497f-9bbd-2850d8752fa9)
You can see I got a prompt for the next command even though I'm supposed to be in the context of the first one.

I tried this on 2 different computers, both in CMD and Powershell.
Any ideas?
Is this a bug?

As a workaround, I added this to my Powershell Profile:
```powershell
function awsl {
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Args
)
aws @Args --profile local --endpoint-url http://localhost:4566
}
```
So instead of `awslocal` I'm my custom `awsl` at the end of each `aws` command (not only endpoint but also my custom aws-local profile).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the awslocal behavior on Windows 11 in both CMD and PowerShell, especially with the AWS CLI configure command. Compare it with the reported PowerShell awsl workaround and determine when the prompt appears relative to command completion. Done means awslocal waits for the command and interactive input to finish before returning the next prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.