wait_for_instancesを実装する→Net::Amazon::EC2::InstanceState

ATTRIBUTES code (required) An interger representing the instance state. Valid values are:

  • 0: pending
  • 16: running
  • 32: shutting-down
  • 48: terminated «