Added private_ip parsing logic for instances hosted in aws.