By default, what is the page size used by AWS CLI? (i.e. how many items are returned per API call)
1.000
What happens if the number of returned items are over 1.000?
The CLI will make several calls but will still show everything in on go.
- E.g. 2.500 items would force the CLI to make 3 calls, but all 2.500 items would be shown at the same time
You are using the AWS CLI trying to list all items in an S3 bucket but you get a timeout error, what could be the reason?
The default page size of 1.000 is too high so it takes to long time to fetch all the items
How can you solve an AWS CLI Pagination Error?
You run
‘aws s3api list-objects –bucket mybucket ‘
What is the difference between ending the command with ‘–page-size 100’ vs ‘–max-items 100’?
What can you do to solve a ‘timed out’ error or an error related to too many results being returned?
Adjust the pagination in the CLI results.