Make the ec2 endpoint configurable