function get_aws_regions()
{
$regionEnum = new ReflectionClass('Aws\\Common\\Enum\\Region');
$all_regions = $regionEnum->getConstants();
$regions = array();
foreach ($all_regions as $label => $region) {
// Nicely format region name
if (self::DEFAULT_REGION === $region) {
$label = 'US Standard';
} else {
$label = strtolower($label);
$label = str_replace('_', ' ', $label);
$label = ucwords($label);
}
$regions[$region] = $label;
}
return $regions;
}