def create_cloud(self):
instances = []<EOL>for i in range(self.settings['<STR_LIT>']):<EOL><INDENT>new_instance = Instance.new(settings=self.settings, cluster=self)<EOL>instances.append(new_instance)<EOL><DEDENT>create_nodes = [instance.create(suffix=i) for i, instance in enumerate(instances)]<EOL>fetch_nodes = [instance.node for instance in instances]<EOL>self.driver.wait_until_running(fetch_nodes)<EOL>node_ids = [node.id for node in fetch_nodes]<EOL>all_nodes = self.driver.list_nodes()<EOL>new_nodes = [node for node in all_nodes if node.id in node_ids]<EOL>for instance, node in zip(instances, new_nodes):<EOL><INDENT>instance.node = node<EOL><DEDENT>self.instances = instances<EOL>
Create instances for the cloud providers