to get instance_id, publicip and name tag of running instances