private function launchInstance(OutputInterface $output, $useOneInstancePerTestSuite, Config $awsConfig, $testSuite)
{
$awsInstance = new Instance($awsConfig, $testSuite);
if ($useOneInstancePerTestSuite) {
$awsInstance->enableUseOneInstancePerTestSuite();
}
$launcher = new InstanceLauncher($awsInstance);
$host = $launcher->launchOrResumeInstance();
$output->writeln(sprintf("Access instance using <comment>ssh -i %s ubuntu@%s</comment>", $awsConfig->getPemFile(), $host));
$output->writeln("You can log in to Piwik via root:secure at <comment>http://{$host}</comment>");
$output->writeln("You can access database via root:secure (<comment>mysql -uroot -psecure</comment>)");
$output->writeln("Files are located in <comment>~/www/piwik</comment>");
$output->writeln(' ');
return $host;
}