Hello! 馃憢
After upgrading AWS CLI to v2 using brew package manager, my AWS CLI is outputting everything to nano, which is my default text editor in console. Previously it was simply outputting to stdout.
How can I change this behaviour to the previous one? Due to this I have problems with running bash scripts, that use AWS CLI.
Hi @PatrykMilewski ,
Is this happening for every command or which ones specifically are doing this?
@KaibaLopez thanks for the response.
I just confirmed, that I have this problem for Dynamo, Lambda, SSM, IAM and probably all other services. It actually outputs to less
not nano
, my bad.
Hmm, this seems to be a common issue on v2, but just so I can make sure it's not dependent on some local configuration or specific commands... Can you provide some examples so I can try and reproduce this behavior? Just one or 2 are enough
Also, in case this is a blocking issue for you and you need a quick workaround, you could always pipe the commands to escape it aws dynamodb list-tables | > /dev/null
Hi @PatrykMilewski ,
Can you try following this instructions, and let me know if that solved your issue for you.
@KaibaLopez It works, thanks!
To fix use this command:
export AWS_PAGER=""
Or in ~/.aws/config
:
[default]
cli_pager=
[default]
cli_page=
does not work for me.
Ubuntu 20.04.
cli version aws-cli/2.0.6
AWS_PAGER does the trick
Most helpful comment
@KaibaLopez It works, thanks!
To fix use this command:
Or in
~/.aws/config
: