Skip to content
Snippets Groups Projects
Commit effbb454 authored by Yas Naoi's avatar Yas Naoi Committed by Yas Naoi
Browse files

Issue #3506005 by yas: Add the location of the Thailand (Bangkok) region (ap-southeast-7)

parent d23bdf61
No related branches found
No related tags found
No related merge requests found
Pipeline #422645 failed
......@@ -3964,3 +3964,22 @@ function aws_cloud_update_8282() {
}
}
}
/**
* Add AWS Cloud region location configuration items.
*/
function aws_cloud_update_8283() {
$config_path = realpath(\Drupal::service('extension.path.resolver')->getPath('module', 'aws_cloud')) . '/config/install';
$filename = $config_path . '/aws_cloud.settings.yml';
$file = file_get_contents($filename);
if ($file) {
$values = Yaml::decode($file);
if (!empty($values) && is_array($values) && isset($values['aws_cloud_region_locations'])) {
$config_factory = \Drupal::configFactory();
$config = $config_factory->getEditable('aws_cloud.settings');
$config->set('aws_cloud_region_locations', $values['aws_cloud_region_locations']);
$config->save();
}
}
}
......@@ -127,6 +127,11 @@ aws_cloud_region_locations:
city: 'Kuala Lumpur'
latitude: '3.151696'
longitude: '101.694237'
ap-southeast-7:
country: TH
city: 'Bangkok'
latitude: '13.736717'
longitude: '100.523186'
ca-central-1:
country: CA
city: Central
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment