Skip to main content

Wait for state

Wait until every instance named is in a state, e.g. running after a start or stopped after a stop.

Command in the AWS EC2 toolkit · id ooa.aws_ec2/wait_for_state · 5 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoec2Name of the session opened by Connect.
Instance IDsListYesInstances by id or by Name tag, e.g. ["i-0abc1234def567890"] or ["Invoice bot"].
StateStringNorunningThe state to wait for.
Timeout (seconds)NumberNo600Stop waiting after this many seconds and fail with WAIT_TIMEOUT.
Check every (seconds)NumberNo10Seconds between checks.

Outputs​

OutputTypeWhat it is
statesDictionaryInstance id to the state it was in at the end.