Update code to the new endpoint on EC2