I have changed how it finds which ec2 endpoint it is seeking.