-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Output of aws configure sso
is broken when piping through tee
#6836
Comments
aws configure sso
is broken when piping through teeaws configure sso
is broken when piping through tee
Hello @simonweil, Thanks for writing! I can confirm the bug you're experiencing, but I do not know the underlying cause from the change to
Then you don't need to determine it after the fact, and can use that name with any of the profile configuration options the AWS CLI provides. You can even set it first and then configure it:
|
Hi @kdaily, The short answer is that no, this workaround would not work for me. The long answer. I manage tens of AWS accounts and growing, each account has several roles with a naming convention that contains the account name and role type (admin, developer, devops, readonly, etc). When choosing the account, role and region from the aws command, the aws/config file gets populated, meaning the next time I access that account and role I have less to setup (the region) and, more importantly, the This context is used as policy to populate the title of the terminal tab and on the prompt to minimize the possibility of confusion related to the context in which we operate. Defining the role myself in advance may cause the situation that the profile name and the context (account & role) differ due to human error and there is no unity within the team, meaning again harder context when working together. Now, if I'd be working alone the issue wouldn't be as bad as I can make my own conventions but there is an entire team that work together and rely on this feature and function I shared in the original description. We take many precautions to minimize the human mistake risk and having a context visible, clear and trustworthy is super important. It's bad enough the accounts and roles appear in random order (#6108) , but now choosing the right account is like rolling a dice and that is very frustrating 😞 |
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
When piping the
aws configure sso
command withtee
the output is broken, this happens since version2.4.19
when theprompt-toolkit
was upgraded.SDK version number
Platform/OS/Hardware/Device
To Reproduce (observed behavior)
Expected behavior
Logs/output
Additional context
I use this method in order to catch the profile name generated so I can automatically assign it to AWS_PROFILE env var and all AWS commands will now just work with the role, account and region I just connected to.
This is my nice function for it:
The text was updated successfully, but these errors were encountered: