update EC2 API endpoint