• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

AWSCLI cli_pager

September 5, 2021

In AWSCLI Version 2, it’s using “less” by default to send output to the screen. Less displays output one page at a time.

If less interferes with your script, then you can set “cli_pager” in ~/.aws/config to use nothing.

[default]
region = us-east-2
output = json
cli_pager =

[default] region = us-east-2 output = json cli_pager =

If you have other profiles, add them as well.

[lightsail]
region = us-east-2
output = json
cli_pager =

[lightsail] region = us-east-2 output = json cli_pager =

Filed Under: Cloud, Linux Tagged With: awscli, cli_pager, less, v2

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023