sets up an EC2 instance