throws IOException, InterruptedException {
ComputeServiceContextFactory computeServiceFactory = new ComputeServiceContextFactory();
Map<String, ClusterActionHandler> handlerMap = new HandlerMapFactory().create();
BootstrapClusterAction bootstrapper = new BootstrapClusterAction(computeServiceFactory, handlerMap);
Cluster cluster = bootstrapper.execute(clusterSpec, null);
ConfigureClusterAction configurer = new ConfigureClusterAction(computeServiceFactory, handlerMap);
cluster = configurer.execute(clusterSpec, cluster);
createInstancesFile(clusterSpec, cluster);