Ravi Sir's Cards › AWS
aws wait vs sleep
This comparison card contrasts aws wait and sleep. aws wait is described as real resource state. sleep is described as nothing, just time. The card pairs aws wait with every script, and sleep with almost never.
Read card text
What this card says
Checks
aws wait
Real resource state.
sleep
Nothing, just time.
Key points
Fails clearly on timeout.
Silent wrong timing.
Example
aws ec2 wait instance-running
Use when
Every script.
Almost never.