Write EC2 setup script.