dcloud ec2 instances wait

Wait 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>Required

    string

    Also accepted as --id. Constraints: /^i-[0-9a-f]{6,32}$/

Flags

  • --stateOptional

    enum

    Default running

    One of: running, stopped, terminated

  • --timeout-secondsOptional

    number

    At most this long (default 120, max 300)

    Constraints: integer, 1-300

Example

dcloud ec2 instances wait id

Generated from the API description, the same one the API checks requests against and the CLI is built from.