public function createPlacementGroup($groupName, $strategy = 'cluster')
{
$result = false;
$options = ['GroupName' => (string) $groupName, 'Strategy' => (string) $strategy];
$response = $this->client->call(ucfirst(__FUNCTION__), $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
if ((string) $sxml->return != 'true') {
throw new Ec2Exception(sprintf('Amazon Ec2 could not create placement group "%s". It returned "%s"', $options['GroupName'], $sxml->return));
}
$result = true;
}
return $result;
}