changing ip to EC2 instance