AWS CLI Cheat Sheet/Control service page size

Reduce the number of items retrieved per service call.

Section: Global Options, Output, and Queries

Control service page size

bash
bash
aws ec2 describe-instances --page-size 25
Explanation

Can help long-running list operations avoid timeouts while still returning the full result set.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Global Options, Output, and Queries
Disable automatic pagination
Fetch only the first page of a paginated result set.
OpenIn sheetbashsame section
Limit total items returned
Return only a specific number of items in the CLI output.
OpenIn sheetbashsame section
Override region for one command
Run a command in a specific region.
OpenIn sheetbashsame section
Use a specific profile
Run a command under a named profile.
OpenIn sheetbashsame section
Render tabular output
Format command results as a table.
OpenIn sheetbashsame section
Filter results with JMESPath
Select fields from JSON output.
OpenIn sheetbashsame section