Updated to be using private_ip instead of private_dns of instance as instances on VPC do not have private_dns