Ravi Sir's Cards › AWS
Pagination and waiters
This revision card explains Pagination and waiters. It starts from the need that big lists come in pages. Scripts break if they continue too early. On the card, the building blocks include CLI auto-pages. aws. wait blocks until a state is reached. The how-to section covers how to use --max-items and --starting-token for control. An example on the card is use --filters to filter on the server side.
Read card text
What this card says
Why do we need it?
Big lists come in pages. Scripts break if they continue too early.
What is it?
CLI auto-pages. aws ... wait blocks until a state is reached.
aws ec2 wait instance-running
How to do it
Use --max-items and --starting-token for control.
Example
Use --filters to filter on the server side.
Name=instance-state-name,Values=running