Can be simplified using map, try:

data.map {|info| info['InstanceId']}