dcloud ec2 instances waitWait until the instance is running (or stopped, or terminated)
IAM ec2:DescribeInstancesRead
Answers the instance as soon as it is in the state, or 408 after timeoutSeconds (call again to keep waiting), or 409 if it terminated first. Running means the machine exists and has its addresses.
Synopsis
dcloud ec2 instances wait id [flags]Arguments
<id>Requiredstring
Also accepted as
--id. Constraints: /^i-[0-9a-f]{6,32}$/
Flags
--stateOptionalenum
Default running
One of:
running,stopped,terminated--timeout-secondsOptionalnumber
At most this long (default 120, max 300)
Constraints: integer, 1-300
Example
dcloud ec2 instances wait idGenerated from the API description, the same one the API checks requests against and the CLI is built from.