AWS cli: disable pager (“less” paginator)
Oct 11, 2023
AWS CLI by default outputs long text using “less” as paginator (so you can use keyboard to navigate). If you need to capture the output or put the command into a batch script, you can disable it by setting an env
export AWS_PAGER=""
See full documentation here