ruby block for get instance aws info