From 3097bf45d14dad393ce291b6276b9aaba48d2100 Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Fri, 29 Mar 2024 16:58:23 +0900 Subject: [PATCH 1/2] Get and load cloudinfo.yaml into runtime variable --- assets/cloudinfo.yaml | 4202 +++++++++++++++++++------------------ go.mod | 3 + go.sum | 6 + src/core/common/config.go | 68 + src/main.go | 32 +- 5 files changed, 2205 insertions(+), 2106 deletions(-) diff --git a/assets/cloudinfo.yaml b/assets/cloudinfo.yaml index 0bb8c4b03..c47e6d7d2 100644 --- a/assets/cloudinfo.yaml +++ b/assets/cloudinfo.yaml @@ -2,2104 +2,2106 @@ # This file is used to define the CSPs and their regions. # The file is in YAML format and contains the following fields: -# : Name of the CSP -# desc: Description of the CSP -# driver: Name of the driver library file (a prepared CB-Spider Driver) -# link: -# -URLs to the official documentation of the CSP -# region: List of regions -# : -# desc: Description of the region -# location: Location details of the region -# display: Display name -# latitude: Latitude -# longitude: Longitude -# zone: List of availability zones in the region -# : -# - +# cloud: Top level key +# : Name of the CSP +# desc: Description of the CSP +# driver: Name of the driver library file (a prepared CB-Spider Driver) +# link: +# -URLs to the official documentation of the CSP +# region: List of regions +# : +# desc: Description of the region +# location: Location details of the region +# display: Display name +# latitude: Latitude +# longitude: Longitude +# zone: List of availability zones in the region +# : +# - -alibaba: - desc: Alibaba Cloud - driver: alibaba-driver-v1.0.so - link: - - https://www.alibabacloud.com/help/en/ecs/product-overview/regions-and-zones - region: - ap-northeast-1: - desc: Japan (Tokyo) - location: - display: Japan (Tokyo) - latitude: 35.41 - longitude: 139.42 - zone: - - ap-northeast-1a - - ap-northeast-1b - - ap-northeast-1c - ap-northeast-2: - desc: South Korea (Seoul) - location: - display: South Korea (Seoul) - latitude: 37.36 - longitude: 126.78 - zone: - - ap-northeast-2a - ap-south-1: - desc: Mumbai - location: - display: India (Mumbai) - latitude: 19.08 - longitude: 72.88 - zone: - - ap-south-1a - - ap-south-1b - ap-southeast-1: - desc: Singapore - location: - display: Singapore - latitude: 1.37 - longitude: 103.8 - zone: - - ap-southeast-1a - - ap-southeast-1b - - ap-southeast-1c - ap-southeast-2: - desc: Australia (Sydney) - location: - display: Australia (Sydney) - latitude: -33.86 - longitude: 151.2 - zone: - - ap-southeast-2a - - ap-southeast-2b - ap-southeast-3: - desc: Malaysia (Kuala Lumpur) - location: - display: Malaysia (Kuala Lumpur) - latitude: 3.1408 - longitude: 101.6932 - zone: - - ap-southeast-3a - - ap-southeast-3b - ap-southeast-5: - desc: Indonesia (Jakarta) - location: - display: Indonesia (Jakarta) - latitude: -6.205 - longitude: 106.816 - zone: - - ap-southeast-5a - - ap-southeast-5b - - ap-southeast-5c - cn-beijing: - desc: China (Beijing) - location: - display: China (Beijing) - latitude: 39.5427 - longitude: 116.235 - zone: - - cn-beijing-a - - cn-beijing-b - - cn-beijing-c - - cn-beijing-d - - cn-beijing-e - - cn-beijing-f - - cn-beijing-g - - cn-beijing-h - - cn-beijing-i - - cn-beijing-j - - cn-beijing-k - - cn-beijing-l - cn-chengdu: - desc: China (Chengdu) - location: - display: China (Chengdu) - latitude: 30.657 - longitude: 104.08 - zone: - - cn-chengdu-a - - cn-chengdu-b - cn-guangzhou: - desc: China (Guangzhou) - location: - display: China (Guangzhou) - latitude: 23.1292 - longitude: 113.3288 - zone: - - cn-guangzhou-a - - cn-guangzhou-b - cn-hangzhou: - desc: China (Hangzhou) - location: - display: China (Hangzhou) - latitude: 30.25 - longitude: 120.1666 - zone: - - cn-hangzhou-b - - cn-hangzhou-e - - cn-hangzhou-f - - cn-hangzhou-g - - cn-hangzhou-h - - cn-hangzhou-i - - cn-hangzhou-j - - cn-hangzhou-k - cn-heyuan: - desc: China (Heyuan) - location: - display: China (Heyuan) - latitude: 23.7333 - longitude: 114.683 - zone: - - cn-heyuan-a - - cn-heyuan-b - cn-hongkong: - desc: China (Hong Kong) - location: - display: China (Hong Kong) - latitude: 22.4464 - longitude: 114.5095 - zone: - - cn-hongkong-b - - cn-hongkong-c - - cn-hongkong-d - cn-huhehaote: - desc: China (Huhehaote) - location: - display: China (Hohhot) - latitude: 40.5046 - longitude: 111.4358 - zone: - - cn-huhehaote-a - - cn-huhehaote-b - cn-qingdao: - desc: China (Qingdao) - location: - display: China (Qingdao) - latitude: 36.3 - longitude: 120.22 - zone: - - cn-qingdao-b - - cn-qingdao-c - cn-shanghai: - desc: China (Shanghai) - location: - display: China (Shanghai) - latitude: 31.224 - longitude: 121.4691 - zone: - - cn-shanghai-a - - cn-shanghai-b - - cn-shanghai-c - - cn-shanghai-d - - cn-shanghai-e - - cn-shanghai-f - - cn-shanghai-g - - cn-shanghai-k - - cn-shanghai-l - - cn-shanghai-m - - cn-shanghai-n - cn-shenzhen: - desc: China (Shenzhen) - location: - display: China (Shenzhen) - latitude: 22.5428 - longitude: 114.0629 - zone: - - cn-shenzhen-a - - cn-shenzhen-b - - cn-shenzhen-c - - cn-shenzhen-d - - cn-shenzhen-e - - cn-shenzhen-f - cn-wulanchabu: - desc: China (Ulanqab) - location: - display: China (Ulanqab) - latitude: 40.9937 - longitude: 113.1333 - zone: - - cn-wulanchabu-a - - cn-wulanchabu-b - - cn-wulanchabu-c - cn-zhangjiakou: - desc: China (Zhangjiakou) - location: - display: China (Zhangjiakou) - latitude: 40.4836 - longitude: 114.5245 - zone: - - cn-zhangjiakou-a - - cn-zhangjiakou-b - - cn-zhangjiakou-c - eu-central-1: - desc: Germany (Frankfurt) - location: - display: Germany (Frankfurt) - latitude: 50.0 - longitude: 8.0 - zone: - - eu-central-1a - - eu-central-1b - - eu-central-1c - eu-west-1: - desc: UK (London) - location: - display: UK (London) - latitude: 53.0 - longitude: -8.0 - zone: - - eu-west-1a - - eu-west-1b - me-east-1: - desc: UAE (Dubai) - location: - display: UAE (Dubai) - latitude: 25.277 - longitude: 55.2962 - zone: - - me-east-1a - us-east-1: - desc: US (Virginia) - location: - display: USA (Virginia) - latitude: 38.13 - longitude: -78.45 - zone: - - us-east-1a - - us-east-1b - us-west-1: - desc: US (Silicon Valley) - location: - display: US (Silicon Valley) - latitude: 37.35 - longitude: -121.96 - zone: - - us-west-1a - - us-west-1b - me-central-1: - desc: Middle East (UAE) - location: - display: UAE - latitude: 24.0002488 - longitude: 53.9994829 - zone: - - me-central-1a - - me-central-1b - ap-southeast-7: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - ap-southeast-7a - cn-nanjing: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - cn-nanjing-a - cn-fuzhou: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - cn-fuzhou-a - ap-southeast-6: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - ap-southeast-6a - cn-wuhan-lr: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - cn-wuhan-lr-a -aws: - desc: Amazon Web Services - driver: aws-driver-v1.0.so - link: - - https://aws.amazon.com/about-aws/global-infrastructure/ - - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html - region: - af-south-1: - desc: Africa (Cape Town) - location: - display: Africa (Cape Town) - latitude: -33.9 - longitude: 18.5 - zone: - - af-south-1a - - af-south-1b - - af-south-1c - ap-east-1: - desc: Asia Pacific (Hong Kong) - location: - display: Asia Pacific (Hong Kong) - latitude: 22.2603 - longitude: 114.1803 - zone: - - ap-east-1a - - ap-east-1b - - ap-east-1c - ap-northeast-1: - desc: Asia Pacific (Tokyo) - location: - display: Japan (Tokyo) - latitude: 35.41 - longitude: 139.42 - zone: - - ap-northeast-1a - - ap-northeast-1c - - ap-northeast-1d - ap-northeast-2: - desc: Asia Pacific (Seoul) - location: - display: South Korea (Seoul) - latitude: 37.36 - longitude: 126.78 - zone: - - ap-northeast-2a - - ap-northeast-2b - - ap-northeast-2c - - ap-northeast-2d - ap-northeast-3: - desc: Asia Pacific (Osaka) - location: - display: Asia Pacific (Osaka-Local) - latitude: 34.38 - longitude: 131.7 - zone: - - ap-northeast-3a - - ap-northeast-3b - - ap-northeast-3c - ap-south-1: - desc: Asia Pacific (Mumbai) - location: - display: India (Mumbai) - latitude: 19.08 - longitude: 72.88 - zone: - - ap-south-1a - - ap-south-1b - - ap-south-1c - ap-southeast-1: - desc: Asia Pacific (Singapore) - location: - display: Singapore - latitude: 1.37 - longitude: 103.8 - zone: - - ap-southeast-1a - - ap-southeast-1b - - ap-southeast-1c - ap-southeast-2: - desc: Asia Pacific (Sydney) - location: - display: Australia (Sydney) - latitude: -33.86 - longitude: 151.2 - zone: - - ap-southeast-2a - - ap-southeast-2b - - ap-southeast-2c - ca-central-1: - desc: Canada (Central) - location: - display: Canada Central - latitude: 45.5 - longitude: -73.6 - zone: - - ca-central-1a - - ca-central-1b - - ca-central-1d - eu-central-1: - desc: Europe (Frankfurt) - location: - display: Germany (Frankfurt) - latitude: 50.0 - longitude: 8.0 - zone: - - eu-central-1a - - eu-central-1b - - eu-central-1c - eu-north-1: - desc: Europe (Stockholm) - location: - display: Europe (Stockholm) - latitude: 64.6 - longitude: 14.2 - zone: - - eu-north-1a - - eu-north-1b - - eu-north-1c - eu-south-1: - desc: Europe (Milan) - location: - display: Europe (Milan) - latitude: 45.4 - longitude: 9.1 - zone: - - eu-south-1a - - eu-south-1b - - eu-south-1c - eu-west-1: - desc: Europe (Ireland) - location: - display: Ireland - latitude: 53.0 - longitude: -8.0 - zone: - - eu-west-1a - - eu-west-1b - - eu-west-1c - eu-west-2: - desc: Europe (London) - location: - display: UK (London) - latitude: 51.0 - longitude: -0.1 - zone: - - eu-west-2a - - eu-west-2b - - eu-west-2c - eu-west-3: - desc: Europe (Paris) - location: - display: Paris - latitude: 48.86 - longitude: 2.35 - zone: - - eu-west-3a - - eu-west-3b - - eu-west-3c - me-south-1: - desc: Middle East (Bahrain) - location: - display: Middle East (Bahrain) - latitude: 25.0 - longitude: 49.6 - zone: - - me-south-1a - - me-south-1b - - me-south-1c - sa-east-1: - desc: South America (Sao Paulo) - location: - display: Brazil (Sao Paulo) - latitude: -23.34 - longitude: -46.38 - zone: - - sa-east-1a - - sa-east-1b - - sa-east-1c - us-east-1: - desc: US East (N. Virginia) - location: - display: US East (N. Virginia) - latitude: 38.13 - longitude: -78.45 - zone: - - us-east-1a - - us-east-1b - - us-east-1c - - us-east-1d - - us-east-1e - - us-east-1f - us-east-2: - desc: US East (Ohio) - location: - display: USA (Ohio) - latitude: 39.96 - longitude: -83.0 - zone: - - us-east-2a - - us-east-2b - - us-east-2c - us-west-1: - desc: US West (N. California) - location: - display: California - latitude: 37.35 - longitude: -121.96 - zone: - - us-west-1a - - us-west-1b - us-west-2: - desc: US West (Oregon) - location: - display: Oregon - latitude: 46.15 - longitude: -123.88 - zone: - - us-west-2a - - us-west-2b - - us-west-2c - - us-west-2d - ap-south-2: - desc: Asia Pacific (Hyderabad) - location: - display: Hyderabad - latitude: 17.360589 - longitude: 78.4740613 - zone: - - ap-south-2a - - ap-south-2b - - ap-south-2c - eu-central-2: - desc: Europe (Zurich) - location: - display: Zurich - latitude: 47.3744489 - longitude: 8.5410422 - zone: - - eu-central-2a - - eu-central-2b - - eu-central-2c - il-central-1: - desc: Israel (Tel Aviv) - location: - display: Tel Aviv - latitude: 32.0852997 - longitude: 34.7818064 - zone: - - il-central-1a - - il-central-1b - - il-central-1c - ap-southeast-4: - desc: Asia Pacific (Melbourne) - location: - display: Melbourne - latitude: -37.8142454 - longitude: 144.9631732 - zone: - - ap-southeast-4a - - ap-southeast-4b - - ap-southeast-4c - ap-southeast-3: - desc: Asia Pacific (Jakarta) - location: - display: Jakarta - latitude: -6.175247 - longitude: 106.8270488 - zone: - - ap-southeast-3a - - ap-southeast-3b - - ap-southeast-3c - eu-south-2: - desc: Europe (Spain) - location: - display: Spain - latitude: 39.3260685 - longitude: -4.8379791 - zone: - - eu-south-2a - - eu-south-2b - - eu-south-2c - me-central-1: - desc: Middle East (UAE) - location: - display: UAE - latitude: 24.0002488 - longitude: 53.9994829 - zone: - - me-central-1a - - me-central-1b - - me-central-1c - ca-west-1: - desc: Canada West (Calgary) - location: - display: Calgary - latitude: 51.0456064 - longitude: -114.057541 - zone: - - ca-west-1a - - ca-west-1b - - ca-west-1c -azure: - desc: Microsoft Azure - driver: azure-driver-v1.0.so - region: - australiacentral: - desc: Australia Central - location: - display: Australia Central - latitude: -35.3075 - longitude: 149.1244 - zone: [] - australiacentral2: - desc: Australia Central 2 - location: - display: Australia Central 2 - latitude: -35.3085 - longitude: 149.1254 - zone: [] - australiaeast: - desc: Australia East - location: - display: Australia East - latitude: -33.86 - longitude: 151.2094 - zone: - - '1' - - '2' - - '3' - australiasoutheast: - desc: Australia Southeast - location: - display: Australia Southeast - latitude: -37.8136 - longitude: 144.9631 - zone: [] - brazilsouth: - desc: Brazil South - location: - display: Brazil South - latitude: -23.55 - longitude: -46.633 - zone: - - '1' - - '2' - - '3' - canadacentral: - desc: Canada Central - location: - display: Canada Central - latitude: 43.653 - longitude: -79.383 - zone: - - '1' - - '2' - - '3' - canadaeast: - desc: Canada East - location: - display: Canada East - latitude: 46.817 - longitude: -71.217 - zone: [] - centralindia: - desc: Central India - location: - display: Central India - latitude: 18.5822 - longitude: 73.9197 - zone: - - '1' - - '2' - - '3' - centralus: - desc: Central US - location: - display: Central US - latitude: 41.5908 - longitude: -93.6208 - zone: - - '1' - - '2' - - '3' - eastasia: - desc: East Asia - location: - display: East Asia - latitude: 22.267 - longitude: 114.188 - zone: - - '1' - - '2' - - '3' - eastus: - desc: East US - location: - display: East US - latitude: 37.3719 - longitude: -79.8164 - zone: - - '1' - - '2' - - '3' - eastus2: - desc: East US 2 - location: - display: East US 2 - latitude: 36.6681 - longitude: -78.3889 - zone: - - '1' - - '2' - - '3' - francecentral: - desc: France Central - location: - display: France Central - latitude: 46.3772 - longitude: 2.373 - zone: - - '1' - - '2' - - '3' - francesouth: - desc: France South - location: - display: France South - latitude: 43.8345 - longitude: 2.1972 - zone: [] - germanynorth: - desc: Germany North - location: - display: Germany North - latitude: 53.0736 - longitude: 8.8064 - zone: [] - germanywestcentral: - desc: Germany West Central - location: - display: Germany West Central - latitude: 50.1109 - longitude: 8.6821 - zone: - - '1' - - '2' - - '3' - japaneast: - desc: Japan East - location: - display: Japan East - latitude: 35.68 - longitude: 139.77 - zone: - - '1' - - '2' - - '3' - japanwest: - desc: Japan West - location: - display: Japan West - latitude: 34.6939 - longitude: 135.5022 - zone: [] - koreacentral: - desc: Korea Central - location: - display: Korea Central - latitude: 37.5665 - longitude: 126.978 - zone: - - '1' - - '2' - - '3' - koreasouth: - desc: Korea South - location: - display: Korea South - latitude: 35.1796 - longitude: 129.0756 - zone: [] - northcentralus: - desc: North Central US - location: - display: North Central US - latitude: 41.8819 - longitude: -87.6278 - zone: [] - northeurope: - desc: North Europe - location: - display: North Europe - latitude: 53.3478 - longitude: -6.2597 - zone: - - '1' - - '2' - - '3' - norwayeast: - desc: Norway East - location: - display: Norway East - latitude: 59.9139 - longitude: 10.7522 - zone: - - '1' - - '2' - - '3' - norwaywest: - desc: Norway West - location: - display: Norway West - latitude: 58.97 - longitude: 5.7331 - zone: [] - southafricanorth: - desc: South Africa North - location: - display: South Africa North - latitude: -25.7313 - longitude: 28.2184 - zone: - - '1' - - '2' - - '3' - southafricawest: - desc: South Africa West - location: - display: South Africa West - latitude: -34.0757 - longitude: 18.8433 - zone: [] - southcentralus: - desc: South Central US - location: - display: South Central US - latitude: 29.4167 - longitude: -98.5 - zone: - - '1' - - '2' - - '3' - southeastasia: - desc: Southeast Asia - location: - display: Southeast Asia - latitude: 1.283 - longitude: 103.833 - zone: - - '1' - - '2' - - '3' - southindia: - desc: South India - location: - display: South India - latitude: 12.9822 - longitude: 80.1636 - zone: [] - switzerlandnorth: - desc: Switzerland North - location: - display: Switzerland North - latitude: 47.4515 - longitude: 8.5646 - zone: - - '1' - - '2' - - '3' - switzerlandwest: - desc: Switzerland West - location: - display: Switzerland West - latitude: 46.2044 - longitude: 6.1432 - zone: [] - uaecentral: - desc: UAE Central - location: - display: UAE Central - latitude: 24.4667 - longitude: 54.3667 - zone: [] - uaenorth: - desc: UAE North - location: - display: UAE North - latitude: 25.2667 - longitude: 55.3167 - zone: - - '1' - - '2' - - '3' - uksouth: - desc: UK South - location: - display: UK South - latitude: 50.941 - longitude: -0.799 - zone: - - '1' - - '2' - - '3' - ukwest: - desc: UK West - location: - display: UK West - latitude: 53.427 - longitude: -3.084 - zone: [] - westcentralus: - desc: ' West Central US' - location: - display: West Central US - latitude: 40.89 - longitude: -110.234 - zone: [] - westeurope: - desc: West Europe - location: - display: West Europe - latitude: 52.3667 - longitude: 4.9 - zone: - - '1' - - '2' - - '3' - westindia: - desc: West India - location: - display: West India - latitude: 19.088 - longitude: 72.868 - zone: [] - westus: - desc: West US - location: - display: West US - latitude: 37.783 - longitude: -122.417 - zone: [] - westus2: - desc: West US 2 - location: - display: West US 2 - latitude: 47.233 - longitude: -119.852 - zone: - - '1' - - '2' - - '3' - israelcentral: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - '1' - - '2' - - '3' - swedencentral: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - '1' - - '2' - - '3' - eastus2euap: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - '1' - - '2' - - '3' - brazilus: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: [] - qatarcentral: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - '1' - - '2' - - '3' - brazilsoutheast: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: [] - jioindiawest: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: [] - jioindiacentral: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: [] - italynorth: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - '1' - - '2' - - '3' - westus3: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - '1' - - '2' - - '3' - polandcentral: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - '1' - - '2' - - '3' - eastusstg: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: [] - centraluseuap: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: [] -gcp: - desc: Google Cloud Platform - driver: gcp-driver-v1.0.so - link: - - https://cloud.google.com/compute/docs/regions-zones - region: - asia-east1: - desc: Changhua County Taiwan - location: - display: Changhua County Taiwan - latitude: 24.0756 - longitude: 120.5451 - zone: - - asia-east1-a - - asia-east1-b - - asia-east1-c - asia-east2: - desc: Hong Kong - location: - display: Hong Kong - latitude: 22.3964 - longitude: 114.1095 - zone: - - asia-east2-a - - asia-east2-b - - asia-east2-c - asia-northeast1: - desc: Tokyo Japan - location: - display: Japan (Tokyo) - latitude: 35.6896 - longitude: 139.6917 - zone: - - asia-northeast1-a - - asia-northeast1-b - - asia-northeast1-c - asia-northeast2: - desc: Osaka Japan - location: - display: Osaka Japan - latitude: 34.6937 - longitude: 135.5022 - zone: - - asia-northeast2-a - - asia-northeast2-b - - asia-northeast2-c - asia-northeast3: - desc: Seoul South Korea - location: - display: South Korea (Seoul) - latitude: 37.2 - longitude: 127.0 - zone: - - asia-northeast3-a - - asia-northeast3-b - - asia-northeast3-c - asia-south1: - desc: Mumbai India - location: - display: India (Mumbai) - latitude: 19.0761 - longitude: 72.8774 - zone: - - asia-south1-a - - asia-south1-b - - asia-south1-c - asia-southeast1: - desc: Jurong West Singapore - location: - display: Singapore - latitude: 1.3409 - longitude: 103.7041 - zone: - - asia-southeast1-a - - asia-southeast1-b - - asia-southeast1-c - asia-southeast2: - desc: Jakarta Indonesia - location: - display: Jakarta Indonesia - latitude: -6.201 - longitude: 106.816 - zone: - - asia-southeast2-a - - asia-southeast2-b - - asia-southeast2-c - australia-southeast1: - desc: Sydney Australia - location: - display: Australia (Sydney) - latitude: -33.8651 - longitude: 151.2099 - zone: - - australia-southeast1-a - - australia-southeast1-b - - australia-southeast1-c - europe-central2: - desc: Warsaw Poland - location: - display: Warsaw Poland - latitude: 52.237049 - longitude: 21.017532 - zone: - - europe-central2-a - - europe-central2-b - - europe-central2-c - europe-north1: - desc: Hamina Finland - location: - display: Hamina Finland - latitude: 60.57 - longitude: 27.2 - zone: - - europe-north1-a - - europe-north1-b - - europe-north1-c - europe-west1: - desc: St. Ghislain Belgium - location: - display: St. Ghislain Belgium - latitude: 50.4482 - longitude: 3.8189 - zone: - - europe-west1-b - - europe-west1-c - - europe-west1-d - europe-west2: - desc: London England UK - location: - display: UK (London) - latitude: 51.5099 - longitude: -0.1181 - zone: - - europe-west2-a - - europe-west2-b - - europe-west2-c - europe-west3: - desc: Frankfurt Germany - location: - display: Germany (Frankfurt) - latitude: 50.1109 - longitude: 8.6831 - zone: - - europe-west3-a - - europe-west3-b - - europe-west3-c - europe-west4: - desc: Eemshaven Netherlands - location: - display: Eemshaven Netherlands - latitude: 53.4423 - longitude: 6.8253 - zone: - - europe-west4-a - - europe-west4-b - - europe-west4-c - europe-west6: - desc: Zurich Switzerland - location: - display: Zurich Switzerland - latitude: 47.3667 - longitude: 8.55 - zone: - - europe-west6-a - - europe-west6-b - - europe-west6-c - northamerica-northeast1: - desc: Montreal Quebec Canada - location: - display: Montreal Quebec Canada - latitude: 45.5089 - longitude: -73.5617 - zone: - - northamerica-northeast1-a - - northamerica-northeast1-b - - northamerica-northeast1-c - southamerica-east1: - desc: Osasco (Sao Paulo) Brazil - location: - display: Brazil (Sao Paulo) - latitude: -23.5325 - longitude: -46.7917 - zone: - - southamerica-east1-a - - southamerica-east1-b - - southamerica-east1-c - us-central1: - desc: Council Bluffs Iowa USA - location: - display: Council Bluffs Iowa USA - latitude: 41.2522 - longitude: -95.8575 - zone: - - us-central1-a - - us-central1-b - - us-central1-c - - us-central1-f - us-east1: - desc: Moncks Corner South Carolina USA - location: - display: Moncks Corner South Carolina USA - latitude: 33.1913 - longitude: -80.004 - zone: - - us-east1-b - - us-east1-c - - us-east1-d - us-east4: - desc: Ashburn Northern Virginia USA - location: - display: USA (Virginia) - latitude: 39.0403 - longitude: -77.4852 - zone: - - us-east4-a - - us-east4-b - - us-east4-c - us-west1: - desc: Dalles Oregon USA - location: - display: The Dalles Oregon USA - latitude: 45.5946 - longitude: -121.1787 - zone: - - us-west1-a - - us-west1-b - - us-west1-c - us-west2: - desc: LA California USA - location: - display: Los Angeles California USA - latitude: 34.0522 - longitude: -118.2437 - zone: - - us-west2-a - - us-west2-b - - us-west2-c - us-west3: - desc: Salt Lake City Utah USA - location: - display: Salt Lake City Utah USA - latitude: 40.7587 - longitude: -111.8762 - zone: - - us-west3-a - - us-west3-b - - us-west3-c - us-west4: - desc: Las Vegas USA - location: - display: Las Vegas Nevada USA - latitude: 36.1146 - longitude: -115.1728 - zone: - - us-west4-a - - us-west4-b - - us-west4-c - europe-southwest1: - desc: Madrid, Spain, Europe - location: - display: Madrid, Spain, Europe - latitude: 40.4167047 - longitude: -3.7035825 - zone: - - europe-southwest1-a - - europe-southwest1-b - - europe-southwest1-c - europe-west8: - desc: Milan, Italy, Europe - location: - display: Milan, Italy, Europe - latitude: 45.4641943 - longitude: 9.1896346 - zone: - - europe-west8-a - - europe-west8-b - - europe-west8-c - me-central2: - desc: Dammam, Saudi Arabia, Middle East - location: - display: Dammam, Saudi Arabia, Middle East - latitude: 26.4367824 - longitude: 50.1039991 - zone: - - me-central2-a - - me-central2-b - - me-central2-c - europe-west12: - desc: Turin, Italy, Europe - location: - display: Turin, Italy, Europe - latitude: 45.0677551 - longitude: 7.6824892 - zone: - - europe-west12-a - - europe-west12-b - - europe-west12-c - me-central1: - desc: Doha, Qatar, Middle East - location: - display: Doha, Qatar, Middle East - latitude: 25.2856329 - longitude: 51.5264162 - zone: - - me-central1-a - - me-central1-b - - me-central1-c - northamerica-northeast2: - desc: Toronto, Ontario, North America - location: - display: Toronto, Ontario, North America - latitude: 43.6534817 - longitude: -79.3839347 - zone: - - northamerica-northeast2-a - - northamerica-northeast2-b - - northamerica-northeast2-c - us-south1: - desc: Dallas, Texas, North America - location: - display: Dallas, Texas, North America - latitude: 32.7762719 - longitude: -96.7968559 - zone: - - us-south1-a - - us-south1-b - - us-south1-c - australia-southeast2: - desc: Melbourne, Australia, APAC - location: - display: Melbourne, Australia, APAC - latitude: -37.8142454 - longitude: 144.9631732 - zone: - - australia-southeast2-a - - australia-southeast2-b - - australia-southeast2-c - europe-west9: - desc: Paris, France, Europe - location: - display: Paris, France, Europe - latitude: 48.8588897 - longitude: 2.32004102 - zone: - - europe-west9-a - - europe-west9-b - - europe-west9-c - africa-south1: - desc: Johannesburg, South Africa - location: - display: Johannesburg, South Africa - latitude: -26.205 - longitude: 28.049722 - zone: - - africa-south1-a - - africa-south1-b - - africa-south1-c - asia-south2: - desc: Delhi, India, APAC - location: - display: Delhi, India, APAC - latitude: 28.6273928 - longitude: 77.1716954 - zone: - - asia-south2-a - - asia-south2-b - - asia-south2-c - southamerica-west1: - desc: Santiago, Chile, South America - location: - display: Santiago, Chile, South America - latitude: -33.4377756 - longitude: -70.6504502 - zone: - - southamerica-west1-a - - southamerica-west1-b - - southamerica-west1-c - me-west1: - desc: Tel Aviv, Israel, Middle East - location: - display: Tel Aviv, Israel, Middle East - latitude: 32.0956658 - longitude: 34.8062567 - zone: - - me-west1-a - - me-west1-b - - me-west1-c - us-east5: - desc: Columbus, Ohio, North America - location: - display: Columbus, Ohio, North America - latitude: 39.9622601 - longitude: -83.0007065 - zone: - - us-east5-a - - us-east5-b - - us-east5-c - europe-west10: - desc: Berlin, Germany, Europe - location: - display: Berlin, Germany, Europe - latitude: 52.5170365 - longitude: 13.3888599 - zone: - - europe-west10-a - - europe-west10-b - - europe-west10-c -ibm: - desc: IBM Cloud - driver: ibm-driver-v1.0.so - region: - au-syd: - desc: Sydney (Australia) - location: - display: Australia (Sydney) - latitude: -33.86882 - longitude: 151.209296 - zone: - - au-syd-1 - - au-syd-2 - - au-syd-3 - br-sao: - desc: Sao Paulo (Brazil) - location: - display: Brazil (Sao Paulo) - latitude: -23.55052 - longitude: -46.633309 - zone: - - br-sao-1 - - br-sao-2 - - br-sao-3 - ca-tor: - desc: Toronto (Canada) - location: - display: Toronto (Canada) - latitude: 43.655226 - longitude: -79.383184 - zone: - - ca-tor-1 - - ca-tor-2 - - ca-tor-3 - eu-de: - desc: Frankfurt (Germany) - location: - display: Germany (Frankfurt) - latitude: 50.110722 - longitude: 8.682127 - zone: - - eu-de-1 - - eu-de-2 - - eu-de-3 - eu-gb: - desc: London (United Kingdom) - location: - display: UK (London) - latitude: 51.507351 - longitude: -0.127758 - zone: - - eu-gb-1 - - eu-gb-2 - - eu-gb-3 - jp-osa: - desc: Osaka (Japan) - location: - display: Osaka (Japan) - latitude: 34.693738 - longitude: 135.502165 - zone: - - jp-osa-1 - - jp-osa-2 - - jp-osa-3 - jp-tok: - desc: Tokyo (Japan) - location: - display: Japan (Tokyo) - latitude: 35.689588 - longitude: 139.691706 - zone: - - jp-tok-1 - - jp-tok-2 - - jp-tok-3 - us-east: - desc: Washington DC (US East) - location: - display: Washington DC (US East) - latitude: 38.907192 - longitude: -77.036871 - zone: - - us-east-1 - - us-east-2 - - us-east-3 - us-south: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - us-south-1 - - us-south-2 - - us-south-3 - eu-es: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - eu-es-1 - - eu-es-2 - - eu-es-3 -ktcloud: - desc: KT Cloud (Classic without VPC) - driver: ktcloud-driver-v1.0.so - region: - kr-central-a: - desc: Cheon-an - South Korea - location: - display: Cheon-an A - South Korea - latitude: 36.812483 - longitude: 127.107005 - zone: [] - kr-central-b: - desc: Cheon-an - South Korea - location: - display: Cheon-an B - South Korea - latitude: 36.832583 - longitude: 127.157205 - zone: [] - kr-kimhae: - desc: Kimhae - South Korea - location: - display: Kimhae - South Korea - latitude: 35.228545 - longitude: 128.889352 - zone: [] - kr-seoul-m: - desc: Seoul - South Korea - location: - display: South Korea (Seoul) - latitude: 37.566535 - longitude: 126.977969 - zone: [] - kr-seoul-m2: - desc: Seoul - South Korea - location: - display: South Korea (Seoul) - latitude: 37.466535 - longitude: 126.877969 - zone: [] - KOR-Seoul: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - 95e2f517-d64a-4866-8585-5177c256f7c7 - - d7d0177e-6cda-404a-a46f-a5b356d2874e - KOR-Central: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - 9845bd17-d438-4bde-816d-1b12f37d5080 - - eceb5d65-6571-4696-875f-5a17949f3317 - KOR-HA: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - dfd6f03d-dae5-458e-a2ea-cb6a55d0d994 -ktcloudvpc: - desc: KT Cloud (VPC) - driver: ktcloudvpc-driver-v1.0.so - region: - kr-dx-m1: - desc: Seoul - South Korea - location: - display: '' - latitude: '' - longitude: '' - zone: [] -ncp: - desc: Naver Cloud Platform (Classic without VPC) - driver: ncp-driver-v1.0.so - region: - den: - desc: Germany - location: - display: Germany - latitude: 50.1108 - longitude: 8.6821 - zone: [] - jpn: - desc: Japan - location: - display: Japan - latitude: 35.6893 - longitude: 139.6917 - zone: [] - kr: - desc: Korea - location: - display: South Korea (Seoul) - latitude: 37.4754 - longitude: 126.8831 - zone: [] - sgn: - desc: Singapore - location: - display: Singapore - latitude: 1.3402 - longitude: 103.7041 - zone: [] - uswn: - desc: US West - location: - display: US Western - latitude: 37.351 - longitude: -121.963 - zone: [] - KR: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - KR-1 - - KR-2 - USWN: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - USWN-1 - DEN: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - DEN-1 - HK: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - HK-1 - SGN: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - SGN-1 - JPN: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - JPN-1 -ncpvpc: - desc: Naver Cloud Platform (VPC) - driver: ncpvpc-driver-v1.0.so - region: - kr: - desc: Korea 1 - location: - display: South Korea (Seoul) - latitude: 37.4754 - longitude: 126.8831 - zone: [] - sgn: - desc: Singapore 4 - location: - display: Singapore - latitude: 1.3402 - longitude: 103.7041 - zone: [] - KR: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - KR-1 - - KR-2 - SGN: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - SGN-4 - - SGN-5 - JPN: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - JPN-4 - - JPN-5 -nhncloud: - desc: NHN Cloud - driver: nhncloud-driver-v1.0.so - region: - jp1: - desc: Japan (Tokyo) - location: - display: Japan (Tokyo) - latitude: 35.412 - longitude: 139.423 - zone: [] - kr1: - desc: South Korea (Pangyo) - location: - display: South Korea (Pangyo) - latitude: 37.390889 - longitude: 127.096792 - zone: [] - kr2: - desc: South Korea (Pyeongchon) - location: - display: South Korea (Pyeongchon) - latitude: 37.392584 - longitude: 126.95145 - zone: [] - KR1: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - kr-pub-a - - kr-pub-b - KR2: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - kr2-pub-a - - kr2-pub-b - JP1: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - jp-pub-a - - jp-pub-b -openstack: - desc: OpenStack - driver: openstack-driver-v1.0.so - region: - regionone: - desc: Korea Daejeon (Internal) - location: - display: South Korea (Daejeon) - latitude: 36.3804 - longitude: 127.365 - zone: [] -tencent: - desc: Tencent Cloud - driver: tencent-driver-v1.0.so - region: - ap-bangkok: - desc: Bangkok - location: - display: Southeast Asia (Bangkok) - latitude: 13.756331 - longitude: 100.501765 - zone: - - ap-bangkok-1 - - ap-bangkok-2 - ap-beijing: - desc: Beijing - location: - display: North China (Beijing) - latitude: 39.9042 - longitude: 116.407396 - zone: - - ap-beijing-1 - - ap-beijing-2 - - ap-beijing-3 - - ap-beijing-4 - - ap-beijing-5 - - ap-beijing-6 - - ap-beijing-7 - - ap-beijing-8 - - ap-beijing-cdz-haerbin-1 - - ap-beijing-cdz-haerbindianxin-1 - - ap-beijing-cdz-kscs-1 - - ap-beijing-cdz-tmap-1 - - ap-beijing-cdz-zhuanzhuan-1 - - ap-beijing-ez-taiyuan-1 - - ap-beijing-tez-changchun-1 - - ap-beijing-tez-haerbin-1 - - ap-beijing-tez-shenyang-1 - - ap-beijing-tez-shenyang-2 - - ap-beijing-tez-shijiazhuang-2 - ap-chengdu: - desc: Chengdu - location: - display: Southwest China (Chengdu) - latitude: 30.572815 - longitude: 104.066801 - zone: - - ap-chengdu-1 - - ap-chengdu-2 - - ap-chengdu-tez-chengdu-1 - - ap-chengdu-tez-chengdu-2 - - ap-chengdu-tez-chongqing-1 - - ap-chengdu-tez-kunming-1 - - ap-chengdu-tez-kunming-2 - - ap-chengdu-tez-xian-1 - ap-chongqing: - desc: Chongqing - location: - display: Southwest China (Chongqing) - latitude: 29.431586 - longitude: 106.912251 - zone: - - ap-chongqing-1 - ap-guangzhou: - desc: Guangzhou - location: - display: South China (Guangzhou) - latitude: 23.12911 - longitude: 113.264385 - zone: - - ap-guangzhou-1 - - ap-guangzhou-2 - - ap-guangzhou-3 - - ap-guangzhou-4 - - ap-guangzhou-5 - - ap-guangzhou-51 - - ap-guangzhou-6 - - ap-guangzhou-7 - - ap-guangzhou-8 - - ap-guangzhou-tez-changsha-1 - - ap-guangzhou-tez-dongguan-1 - - ap-guangzhou-tez-guangzhou-1 - - ap-guangzhou-tez-guangzhou-2 - - ap-guangzhou-tez-guangzhou-3 - - ap-guangzhou-tez-nanning-1 - - ap-guangzhou-tez-nanning-2 - - ap-guangzhou-tez-nanning-3 - - ap-guangzhou-tez-shenzhen-1 - - ap-guangzhou-tez-wuhan-1 - - ap-guangzhou-tez-zhengzhou-1 - ap-hongkong: - desc: HongKong - location: - display: Hong Kong - latitude: 22.396228 - longitude: 114.108497 - zone: - - ap-hongkong-1 - - ap-hongkong-2 - - ap-hongkong-3 - - ap-hongkong-cdz-lsszy-1 - ap-jakarta: - desc: Jakarta - location: - display: Southeast Asia (Jakarta) - latitude: -6.17511 - longitude: 106.865036 - zone: - - ap-jakarta-1 - - ap-jakarta-2 - ap-mumbai: - desc: Mumbai - location: - display: India (Mumbai) - latitude: 19.075983 - longitude: 72.877655 - zone: - - ap-mumbai-1 - - ap-mumbai-2 - ap-nanjing: - desc: Nanjing - location: - display: East China (Nanjing) - latitude: 32.060255 - longitude: 118.796877 - zone: - - ap-nanjing-1 - - ap-nanjing-2 - - ap-nanjing-3 - ap-seoul: - desc: Seoul - location: - display: South Korea (Seoul) - latitude: 37.566536 - longitude: 126.977966 - zone: - - ap-seoul-1 - - ap-seoul-2 - ap-shanghai: - desc: Shanghai - location: - display: East China (Shanghai) - latitude: 31.23039 - longitude: 121.473702 - zone: - - ap-shanghai-1 - - ap-shanghai-2 - - ap-shanghai-3 - - ap-shanghai-4 - - ap-shanghai-5 - - ap-shanghai-6 - - ap-shanghai-7 - - ap-shanghai-8 - - ap-shanghai-cdz-yrkj-1 - - ap-shanghai-ez-nanchang-1 - - ap-shanghai-tez-hefei-1 - - ap-shanghai-tez-jinan-1 - - ap-shanghai-tez-nanchang-1 - - ap-shanghai-tez-ningbo-1 - - ap-shanghai-tez-ningbo-2 - - ap-shanghai-tez-qingdao-1 - - ap-shanghai-tez-wuxi-1 - - ap-shanghai-tez-wuxi-2 - ap-singapore: - desc: Singapore - location: - display: Singapore - latitude: 1.352083 - longitude: 103.819839 - zone: - - ap-singapore-1 - - ap-singapore-2 - - ap-singapore-3 - - ap-singapore-4 - - ap-singapore-cdz-grm-1 - ap-tokyo: - desc: Tokyo - location: - display: Japan (Tokyo) - latitude: 35.689487 - longitude: 139.691711 - zone: - - ap-tokyo-1 - - ap-tokyo-2 - eu-frankfurt: - desc: Frankfurt - location: - display: Germany (Frankfurt) - latitude: 50.110922 - longitude: 8.682127 - zone: - - eu-frankfurt-1 - - eu-frankfurt-2 - - eu-frankfurt-3 - eu-moscow: - desc: Moscow - location: - display: Europe (Moscow) - latitude: 55.755826 - longitude: 37.6173 - zone: [] - na-ashburn: - desc: Virginia - location: - display: USA (Virginia) - latitude: 37.431573 - longitude: -78.656894 - zone: - - na-ashburn-1 - - na-ashburn-2 - na-siliconvalley: - desc: SiliconValley - location: - display: Western US (Silicon Valley) - latitude: 37.387474 - longitude: -122.057543 - zone: - - na-siliconvalley-1 - - na-siliconvalley-2 - na-toronto: - desc: Toronto - location: - display: North America (Toronto) - latitude: 43.653226 - longitude: -79.383184 - zone: - - na-toronto-1 - sa-saopaulo: - desc: '' - location: - display: '' - latitude: null - longitude: null - zone: - - sa-saopaulo-1 +cloud: + alibaba: + desc: Alibaba Cloud + driver: alibaba-driver-v1.0.so + link: + - https://www.alibabacloud.com/help/en/ecs/product-overview/regions-and-zones + region: + ap-northeast-1: + desc: Japan (Tokyo) + location: + display: Japan (Tokyo) + latitude: 35.41 + longitude: 139.42 + zone: + - ap-northeast-1a + - ap-northeast-1b + - ap-northeast-1c + ap-northeast-2: + desc: South Korea (Seoul) + location: + display: South Korea (Seoul) + latitude: 37.36 + longitude: 126.78 + zone: + - ap-northeast-2a + ap-south-1: + desc: Mumbai + location: + display: India (Mumbai) + latitude: 19.08 + longitude: 72.88 + zone: + - ap-south-1a + - ap-south-1b + ap-southeast-1: + desc: Singapore + location: + display: Singapore + latitude: 1.37 + longitude: 103.8 + zone: + - ap-southeast-1a + - ap-southeast-1b + - ap-southeast-1c + ap-southeast-2: + desc: Australia (Sydney) + location: + display: Australia (Sydney) + latitude: -33.86 + longitude: 151.2 + zone: + - ap-southeast-2a + - ap-southeast-2b + ap-southeast-3: + desc: Malaysia (Kuala Lumpur) + location: + display: Malaysia (Kuala Lumpur) + latitude: 3.1408 + longitude: 101.6932 + zone: + - ap-southeast-3a + - ap-southeast-3b + ap-southeast-5: + desc: Indonesia (Jakarta) + location: + display: Indonesia (Jakarta) + latitude: -6.205 + longitude: 106.816 + zone: + - ap-southeast-5a + - ap-southeast-5b + - ap-southeast-5c + cn-beijing: + desc: China (Beijing) + location: + display: China (Beijing) + latitude: 39.5427 + longitude: 116.235 + zone: + - cn-beijing-a + - cn-beijing-b + - cn-beijing-c + - cn-beijing-d + - cn-beijing-e + - cn-beijing-f + - cn-beijing-g + - cn-beijing-h + - cn-beijing-i + - cn-beijing-j + - cn-beijing-k + - cn-beijing-l + cn-chengdu: + desc: China (Chengdu) + location: + display: China (Chengdu) + latitude: 30.657 + longitude: 104.08 + zone: + - cn-chengdu-a + - cn-chengdu-b + cn-guangzhou: + desc: China (Guangzhou) + location: + display: China (Guangzhou) + latitude: 23.1292 + longitude: 113.3288 + zone: + - cn-guangzhou-a + - cn-guangzhou-b + cn-hangzhou: + desc: China (Hangzhou) + location: + display: China (Hangzhou) + latitude: 30.25 + longitude: 120.1666 + zone: + - cn-hangzhou-b + - cn-hangzhou-e + - cn-hangzhou-f + - cn-hangzhou-g + - cn-hangzhou-h + - cn-hangzhou-i + - cn-hangzhou-j + - cn-hangzhou-k + cn-heyuan: + desc: China (Heyuan) + location: + display: China (Heyuan) + latitude: 23.7333 + longitude: 114.683 + zone: + - cn-heyuan-a + - cn-heyuan-b + cn-hongkong: + desc: China (Hong Kong) + location: + display: China (Hong Kong) + latitude: 22.4464 + longitude: 114.5095 + zone: + - cn-hongkong-b + - cn-hongkong-c + - cn-hongkong-d + cn-huhehaote: + desc: China (Huhehaote) + location: + display: China (Hohhot) + latitude: 40.5046 + longitude: 111.4358 + zone: + - cn-huhehaote-a + - cn-huhehaote-b + cn-qingdao: + desc: China (Qingdao) + location: + display: China (Qingdao) + latitude: 36.3 + longitude: 120.22 + zone: + - cn-qingdao-b + - cn-qingdao-c + cn-shanghai: + desc: China (Shanghai) + location: + display: China (Shanghai) + latitude: 31.224 + longitude: 121.4691 + zone: + - cn-shanghai-a + - cn-shanghai-b + - cn-shanghai-c + - cn-shanghai-d + - cn-shanghai-e + - cn-shanghai-f + - cn-shanghai-g + - cn-shanghai-k + - cn-shanghai-l + - cn-shanghai-m + - cn-shanghai-n + cn-shenzhen: + desc: China (Shenzhen) + location: + display: China (Shenzhen) + latitude: 22.5428 + longitude: 114.0629 + zone: + - cn-shenzhen-a + - cn-shenzhen-b + - cn-shenzhen-c + - cn-shenzhen-d + - cn-shenzhen-e + - cn-shenzhen-f + cn-wulanchabu: + desc: China (Ulanqab) + location: + display: China (Ulanqab) + latitude: 40.9937 + longitude: 113.1333 + zone: + - cn-wulanchabu-a + - cn-wulanchabu-b + - cn-wulanchabu-c + cn-zhangjiakou: + desc: China (Zhangjiakou) + location: + display: China (Zhangjiakou) + latitude: 40.4836 + longitude: 114.5245 + zone: + - cn-zhangjiakou-a + - cn-zhangjiakou-b + - cn-zhangjiakou-c + eu-central-1: + desc: Germany (Frankfurt) + location: + display: Germany (Frankfurt) + latitude: 50.0 + longitude: 8.0 + zone: + - eu-central-1a + - eu-central-1b + - eu-central-1c + eu-west-1: + desc: UK (London) + location: + display: UK (London) + latitude: 53.0 + longitude: -8.0 + zone: + - eu-west-1a + - eu-west-1b + me-east-1: + desc: UAE (Dubai) + location: + display: UAE (Dubai) + latitude: 25.277 + longitude: 55.2962 + zone: + - me-east-1a + us-east-1: + desc: US (Virginia) + location: + display: USA (Virginia) + latitude: 38.13 + longitude: -78.45 + zone: + - us-east-1a + - us-east-1b + us-west-1: + desc: US (Silicon Valley) + location: + display: US (Silicon Valley) + latitude: 37.35 + longitude: -121.96 + zone: + - us-west-1a + - us-west-1b + me-central-1: + desc: Middle East (UAE) + location: + display: UAE + latitude: 24.0002488 + longitude: 53.9994829 + zone: + - me-central-1a + - me-central-1b + ap-southeast-7: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - ap-southeast-7a + cn-nanjing: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - cn-nanjing-a + cn-fuzhou: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - cn-fuzhou-a + ap-southeast-6: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - ap-southeast-6a + cn-wuhan-lr: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - cn-wuhan-lr-a + aws: + desc: Amazon Web Services + driver: aws-driver-v1.0.so + link: + - https://aws.amazon.com/about-aws/global-infrastructure/ + - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html + region: + af-south-1: + desc: Africa (Cape Town) + location: + display: Africa (Cape Town) + latitude: -33.9 + longitude: 18.5 + zone: + - af-south-1a + - af-south-1b + - af-south-1c + ap-east-1: + desc: Asia Pacific (Hong Kong) + location: + display: Asia Pacific (Hong Kong) + latitude: 22.2603 + longitude: 114.1803 + zone: + - ap-east-1a + - ap-east-1b + - ap-east-1c + ap-northeast-1: + desc: Asia Pacific (Tokyo) + location: + display: Japan (Tokyo) + latitude: 35.41 + longitude: 139.42 + zone: + - ap-northeast-1a + - ap-northeast-1c + - ap-northeast-1d + ap-northeast-2: + desc: Asia Pacific (Seoul) + location: + display: South Korea (Seoul) + latitude: 37.36 + longitude: 126.78 + zone: + - ap-northeast-2a + - ap-northeast-2b + - ap-northeast-2c + - ap-northeast-2d + ap-northeast-3: + desc: Asia Pacific (Osaka) + location: + display: Asia Pacific (Osaka-Local) + latitude: 34.38 + longitude: 131.7 + zone: + - ap-northeast-3a + - ap-northeast-3b + - ap-northeast-3c + ap-south-1: + desc: Asia Pacific (Mumbai) + location: + display: India (Mumbai) + latitude: 19.08 + longitude: 72.88 + zone: + - ap-south-1a + - ap-south-1b + - ap-south-1c + ap-southeast-1: + desc: Asia Pacific (Singapore) + location: + display: Singapore + latitude: 1.37 + longitude: 103.8 + zone: + - ap-southeast-1a + - ap-southeast-1b + - ap-southeast-1c + ap-southeast-2: + desc: Asia Pacific (Sydney) + location: + display: Australia (Sydney) + latitude: -33.86 + longitude: 151.2 + zone: + - ap-southeast-2a + - ap-southeast-2b + - ap-southeast-2c + ca-central-1: + desc: Canada (Central) + location: + display: Canada Central + latitude: 45.5 + longitude: -73.6 + zone: + - ca-central-1a + - ca-central-1b + - ca-central-1d + eu-central-1: + desc: Europe (Frankfurt) + location: + display: Germany (Frankfurt) + latitude: 50.0 + longitude: 8.0 + zone: + - eu-central-1a + - eu-central-1b + - eu-central-1c + eu-north-1: + desc: Europe (Stockholm) + location: + display: Europe (Stockholm) + latitude: 64.6 + longitude: 14.2 + zone: + - eu-north-1a + - eu-north-1b + - eu-north-1c + eu-south-1: + desc: Europe (Milan) + location: + display: Europe (Milan) + latitude: 45.4 + longitude: 9.1 + zone: + - eu-south-1a + - eu-south-1b + - eu-south-1c + eu-west-1: + desc: Europe (Ireland) + location: + display: Ireland + latitude: 53.0 + longitude: -8.0 + zone: + - eu-west-1a + - eu-west-1b + - eu-west-1c + eu-west-2: + desc: Europe (London) + location: + display: UK (London) + latitude: 51.0 + longitude: -0.1 + zone: + - eu-west-2a + - eu-west-2b + - eu-west-2c + eu-west-3: + desc: Europe (Paris) + location: + display: Paris + latitude: 48.86 + longitude: 2.35 + zone: + - eu-west-3a + - eu-west-3b + - eu-west-3c + me-south-1: + desc: Middle East (Bahrain) + location: + display: Middle East (Bahrain) + latitude: 25.0 + longitude: 49.6 + zone: + - me-south-1a + - me-south-1b + - me-south-1c + sa-east-1: + desc: South America (Sao Paulo) + location: + display: Brazil (Sao Paulo) + latitude: -23.34 + longitude: -46.38 + zone: + - sa-east-1a + - sa-east-1b + - sa-east-1c + us-east-1: + desc: US East (N. Virginia) + location: + display: US East (N. Virginia) + latitude: 38.13 + longitude: -78.45 + zone: + - us-east-1a + - us-east-1b + - us-east-1c + - us-east-1d + - us-east-1e + - us-east-1f + us-east-2: + desc: US East (Ohio) + location: + display: USA (Ohio) + latitude: 39.96 + longitude: -83.0 + zone: + - us-east-2a + - us-east-2b + - us-east-2c + us-west-1: + desc: US West (N. California) + location: + display: California + latitude: 37.35 + longitude: -121.96 + zone: + - us-west-1a + - us-west-1b + us-west-2: + desc: US West (Oregon) + location: + display: Oregon + latitude: 46.15 + longitude: -123.88 + zone: + - us-west-2a + - us-west-2b + - us-west-2c + - us-west-2d + ap-south-2: + desc: Asia Pacific (Hyderabad) + location: + display: Hyderabad + latitude: 17.360589 + longitude: 78.4740613 + zone: + - ap-south-2a + - ap-south-2b + - ap-south-2c + eu-central-2: + desc: Europe (Zurich) + location: + display: Zurich + latitude: 47.3744489 + longitude: 8.5410422 + zone: + - eu-central-2a + - eu-central-2b + - eu-central-2c + il-central-1: + desc: Israel (Tel Aviv) + location: + display: Tel Aviv + latitude: 32.0852997 + longitude: 34.7818064 + zone: + - il-central-1a + - il-central-1b + - il-central-1c + ap-southeast-4: + desc: Asia Pacific (Melbourne) + location: + display: Melbourne + latitude: -37.8142454 + longitude: 144.9631732 + zone: + - ap-southeast-4a + - ap-southeast-4b + - ap-southeast-4c + ap-southeast-3: + desc: Asia Pacific (Jakarta) + location: + display: Jakarta + latitude: -6.175247 + longitude: 106.8270488 + zone: + - ap-southeast-3a + - ap-southeast-3b + - ap-southeast-3c + eu-south-2: + desc: Europe (Spain) + location: + display: Spain + latitude: 39.3260685 + longitude: -4.8379791 + zone: + - eu-south-2a + - eu-south-2b + - eu-south-2c + me-central-1: + desc: Middle East (UAE) + location: + display: UAE + latitude: 24.0002488 + longitude: 53.9994829 + zone: + - me-central-1a + - me-central-1b + - me-central-1c + ca-west-1: + desc: Canada West (Calgary) + location: + display: Calgary + latitude: 51.0456064 + longitude: -114.057541 + zone: + - ca-west-1a + - ca-west-1b + - ca-west-1c + azure: + desc: Microsoft Azure + driver: azure-driver-v1.0.so + region: + australiacentral: + desc: Australia Central + location: + display: Australia Central + latitude: -35.3075 + longitude: 149.1244 + zone: [] + australiacentral2: + desc: Australia Central 2 + location: + display: Australia Central 2 + latitude: -35.3085 + longitude: 149.1254 + zone: [] + australiaeast: + desc: Australia East + location: + display: Australia East + latitude: -33.86 + longitude: 151.2094 + zone: + - '1' + - '2' + - '3' + australiasoutheast: + desc: Australia Southeast + location: + display: Australia Southeast + latitude: -37.8136 + longitude: 144.9631 + zone: [] + brazilsouth: + desc: Brazil South + location: + display: Brazil South + latitude: -23.55 + longitude: -46.633 + zone: + - '1' + - '2' + - '3' + canadacentral: + desc: Canada Central + location: + display: Canada Central + latitude: 43.653 + longitude: -79.383 + zone: + - '1' + - '2' + - '3' + canadaeast: + desc: Canada East + location: + display: Canada East + latitude: 46.817 + longitude: -71.217 + zone: [] + centralindia: + desc: Central India + location: + display: Central India + latitude: 18.5822 + longitude: 73.9197 + zone: + - '1' + - '2' + - '3' + centralus: + desc: Central US + location: + display: Central US + latitude: 41.5908 + longitude: -93.6208 + zone: + - '1' + - '2' + - '3' + eastasia: + desc: East Asia + location: + display: East Asia + latitude: 22.267 + longitude: 114.188 + zone: + - '1' + - '2' + - '3' + eastus: + desc: East US + location: + display: East US + latitude: 37.3719 + longitude: -79.8164 + zone: + - '1' + - '2' + - '3' + eastus2: + desc: East US 2 + location: + display: East US 2 + latitude: 36.6681 + longitude: -78.3889 + zone: + - '1' + - '2' + - '3' + francecentral: + desc: France Central + location: + display: France Central + latitude: 46.3772 + longitude: 2.373 + zone: + - '1' + - '2' + - '3' + francesouth: + desc: France South + location: + display: France South + latitude: 43.8345 + longitude: 2.1972 + zone: [] + germanynorth: + desc: Germany North + location: + display: Germany North + latitude: 53.0736 + longitude: 8.8064 + zone: [] + germanywestcentral: + desc: Germany West Central + location: + display: Germany West Central + latitude: 50.1109 + longitude: 8.6821 + zone: + - '1' + - '2' + - '3' + japaneast: + desc: Japan East + location: + display: Japan East + latitude: 35.68 + longitude: 139.77 + zone: + - '1' + - '2' + - '3' + japanwest: + desc: Japan West + location: + display: Japan West + latitude: 34.6939 + longitude: 135.5022 + zone: [] + koreacentral: + desc: Korea Central + location: + display: Korea Central + latitude: 37.5665 + longitude: 126.978 + zone: + - '1' + - '2' + - '3' + koreasouth: + desc: Korea South + location: + display: Korea South + latitude: 35.1796 + longitude: 129.0756 + zone: [] + northcentralus: + desc: North Central US + location: + display: North Central US + latitude: 41.8819 + longitude: -87.6278 + zone: [] + northeurope: + desc: North Europe + location: + display: North Europe + latitude: 53.3478 + longitude: -6.2597 + zone: + - '1' + - '2' + - '3' + norwayeast: + desc: Norway East + location: + display: Norway East + latitude: 59.9139 + longitude: 10.7522 + zone: + - '1' + - '2' + - '3' + norwaywest: + desc: Norway West + location: + display: Norway West + latitude: 58.97 + longitude: 5.7331 + zone: [] + southafricanorth: + desc: South Africa North + location: + display: South Africa North + latitude: -25.7313 + longitude: 28.2184 + zone: + - '1' + - '2' + - '3' + southafricawest: + desc: South Africa West + location: + display: South Africa West + latitude: -34.0757 + longitude: 18.8433 + zone: [] + southcentralus: + desc: South Central US + location: + display: South Central US + latitude: 29.4167 + longitude: -98.5 + zone: + - '1' + - '2' + - '3' + southeastasia: + desc: Southeast Asia + location: + display: Southeast Asia + latitude: 1.283 + longitude: 103.833 + zone: + - '1' + - '2' + - '3' + southindia: + desc: South India + location: + display: South India + latitude: 12.9822 + longitude: 80.1636 + zone: [] + switzerlandnorth: + desc: Switzerland North + location: + display: Switzerland North + latitude: 47.4515 + longitude: 8.5646 + zone: + - '1' + - '2' + - '3' + switzerlandwest: + desc: Switzerland West + location: + display: Switzerland West + latitude: 46.2044 + longitude: 6.1432 + zone: [] + uaecentral: + desc: UAE Central + location: + display: UAE Central + latitude: 24.4667 + longitude: 54.3667 + zone: [] + uaenorth: + desc: UAE North + location: + display: UAE North + latitude: 25.2667 + longitude: 55.3167 + zone: + - '1' + - '2' + - '3' + uksouth: + desc: UK South + location: + display: UK South + latitude: 50.941 + longitude: -0.799 + zone: + - '1' + - '2' + - '3' + ukwest: + desc: UK West + location: + display: UK West + latitude: 53.427 + longitude: -3.084 + zone: [] + westcentralus: + desc: ' West Central US' + location: + display: West Central US + latitude: 40.89 + longitude: -110.234 + zone: [] + westeurope: + desc: West Europe + location: + display: West Europe + latitude: 52.3667 + longitude: 4.9 + zone: + - '1' + - '2' + - '3' + westindia: + desc: West India + location: + display: West India + latitude: 19.088 + longitude: 72.868 + zone: [] + westus: + desc: West US + location: + display: West US + latitude: 37.783 + longitude: -122.417 + zone: [] + westus2: + desc: West US 2 + location: + display: West US 2 + latitude: 47.233 + longitude: -119.852 + zone: + - '1' + - '2' + - '3' + israelcentral: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - '1' + - '2' + - '3' + swedencentral: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - '1' + - '2' + - '3' + eastus2euap: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - '1' + - '2' + - '3' + brazilus: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: [] + qatarcentral: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - '1' + - '2' + - '3' + brazilsoutheast: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: [] + jioindiawest: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: [] + jioindiacentral: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: [] + italynorth: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - '1' + - '2' + - '3' + westus3: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - '1' + - '2' + - '3' + polandcentral: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - '1' + - '2' + - '3' + eastusstg: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: [] + centraluseuap: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: [] + gcp: + desc: Google Cloud Platform + driver: gcp-driver-v1.0.so + link: + - https://cloud.google.com/compute/docs/regions-zones + region: + asia-east1: + desc: Changhua County Taiwan + location: + display: Changhua County Taiwan + latitude: 24.0756 + longitude: 120.5451 + zone: + - asia-east1-a + - asia-east1-b + - asia-east1-c + asia-east2: + desc: Hong Kong + location: + display: Hong Kong + latitude: 22.3964 + longitude: 114.1095 + zone: + - asia-east2-a + - asia-east2-b + - asia-east2-c + asia-northeast1: + desc: Tokyo Japan + location: + display: Japan (Tokyo) + latitude: 35.6896 + longitude: 139.6917 + zone: + - asia-northeast1-a + - asia-northeast1-b + - asia-northeast1-c + asia-northeast2: + desc: Osaka Japan + location: + display: Osaka Japan + latitude: 34.6937 + longitude: 135.5022 + zone: + - asia-northeast2-a + - asia-northeast2-b + - asia-northeast2-c + asia-northeast3: + desc: Seoul South Korea + location: + display: South Korea (Seoul) + latitude: 37.2 + longitude: 127.0 + zone: + - asia-northeast3-a + - asia-northeast3-b + - asia-northeast3-c + asia-south1: + desc: Mumbai India + location: + display: India (Mumbai) + latitude: 19.0761 + longitude: 72.8774 + zone: + - asia-south1-a + - asia-south1-b + - asia-south1-c + asia-southeast1: + desc: Jurong West Singapore + location: + display: Singapore + latitude: 1.3409 + longitude: 103.7041 + zone: + - asia-southeast1-a + - asia-southeast1-b + - asia-southeast1-c + asia-southeast2: + desc: Jakarta Indonesia + location: + display: Jakarta Indonesia + latitude: -6.201 + longitude: 106.816 + zone: + - asia-southeast2-a + - asia-southeast2-b + - asia-southeast2-c + australia-southeast1: + desc: Sydney Australia + location: + display: Australia (Sydney) + latitude: -33.8651 + longitude: 151.2099 + zone: + - australia-southeast1-a + - australia-southeast1-b + - australia-southeast1-c + europe-central2: + desc: Warsaw Poland + location: + display: Warsaw Poland + latitude: 52.237049 + longitude: 21.017532 + zone: + - europe-central2-a + - europe-central2-b + - europe-central2-c + europe-north1: + desc: Hamina Finland + location: + display: Hamina Finland + latitude: 60.57 + longitude: 27.2 + zone: + - europe-north1-a + - europe-north1-b + - europe-north1-c + europe-west1: + desc: St. Ghislain Belgium + location: + display: St. Ghislain Belgium + latitude: 50.4482 + longitude: 3.8189 + zone: + - europe-west1-b + - europe-west1-c + - europe-west1-d + europe-west2: + desc: London England UK + location: + display: UK (London) + latitude: 51.5099 + longitude: -0.1181 + zone: + - europe-west2-a + - europe-west2-b + - europe-west2-c + europe-west3: + desc: Frankfurt Germany + location: + display: Germany (Frankfurt) + latitude: 50.1109 + longitude: 8.6831 + zone: + - europe-west3-a + - europe-west3-b + - europe-west3-c + europe-west4: + desc: Eemshaven Netherlands + location: + display: Eemshaven Netherlands + latitude: 53.4423 + longitude: 6.8253 + zone: + - europe-west4-a + - europe-west4-b + - europe-west4-c + europe-west6: + desc: Zurich Switzerland + location: + display: Zurich Switzerland + latitude: 47.3667 + longitude: 8.55 + zone: + - europe-west6-a + - europe-west6-b + - europe-west6-c + northamerica-northeast1: + desc: Montreal Quebec Canada + location: + display: Montreal Quebec Canada + latitude: 45.5089 + longitude: -73.5617 + zone: + - northamerica-northeast1-a + - northamerica-northeast1-b + - northamerica-northeast1-c + southamerica-east1: + desc: Osasco (Sao Paulo) Brazil + location: + display: Brazil (Sao Paulo) + latitude: -23.5325 + longitude: -46.7917 + zone: + - southamerica-east1-a + - southamerica-east1-b + - southamerica-east1-c + us-central1: + desc: Council Bluffs Iowa USA + location: + display: Council Bluffs Iowa USA + latitude: 41.2522 + longitude: -95.8575 + zone: + - us-central1-a + - us-central1-b + - us-central1-c + - us-central1-f + us-east1: + desc: Moncks Corner South Carolina USA + location: + display: Moncks Corner South Carolina USA + latitude: 33.1913 + longitude: -80.004 + zone: + - us-east1-b + - us-east1-c + - us-east1-d + us-east4: + desc: Ashburn Northern Virginia USA + location: + display: USA (Virginia) + latitude: 39.0403 + longitude: -77.4852 + zone: + - us-east4-a + - us-east4-b + - us-east4-c + us-west1: + desc: Dalles Oregon USA + location: + display: The Dalles Oregon USA + latitude: 45.5946 + longitude: -121.1787 + zone: + - us-west1-a + - us-west1-b + - us-west1-c + us-west2: + desc: LA California USA + location: + display: Los Angeles California USA + latitude: 34.0522 + longitude: -118.2437 + zone: + - us-west2-a + - us-west2-b + - us-west2-c + us-west3: + desc: Salt Lake City Utah USA + location: + display: Salt Lake City Utah USA + latitude: 40.7587 + longitude: -111.8762 + zone: + - us-west3-a + - us-west3-b + - us-west3-c + us-west4: + desc: Las Vegas USA + location: + display: Las Vegas Nevada USA + latitude: 36.1146 + longitude: -115.1728 + zone: + - us-west4-a + - us-west4-b + - us-west4-c + europe-southwest1: + desc: Madrid, Spain, Europe + location: + display: Madrid, Spain, Europe + latitude: 40.4167047 + longitude: -3.7035825 + zone: + - europe-southwest1-a + - europe-southwest1-b + - europe-southwest1-c + europe-west8: + desc: Milan, Italy, Europe + location: + display: Milan, Italy, Europe + latitude: 45.4641943 + longitude: 9.1896346 + zone: + - europe-west8-a + - europe-west8-b + - europe-west8-c + me-central2: + desc: Dammam, Saudi Arabia, Middle East + location: + display: Dammam, Saudi Arabia, Middle East + latitude: 26.4367824 + longitude: 50.1039991 + zone: + - me-central2-a + - me-central2-b + - me-central2-c + europe-west12: + desc: Turin, Italy, Europe + location: + display: Turin, Italy, Europe + latitude: 45.0677551 + longitude: 7.6824892 + zone: + - europe-west12-a + - europe-west12-b + - europe-west12-c + me-central1: + desc: Doha, Qatar, Middle East + location: + display: Doha, Qatar, Middle East + latitude: 25.2856329 + longitude: 51.5264162 + zone: + - me-central1-a + - me-central1-b + - me-central1-c + northamerica-northeast2: + desc: Toronto, Ontario, North America + location: + display: Toronto, Ontario, North America + latitude: 43.6534817 + longitude: -79.3839347 + zone: + - northamerica-northeast2-a + - northamerica-northeast2-b + - northamerica-northeast2-c + us-south1: + desc: Dallas, Texas, North America + location: + display: Dallas, Texas, North America + latitude: 32.7762719 + longitude: -96.7968559 + zone: + - us-south1-a + - us-south1-b + - us-south1-c + australia-southeast2: + desc: Melbourne, Australia, APAC + location: + display: Melbourne, Australia, APAC + latitude: -37.8142454 + longitude: 144.9631732 + zone: + - australia-southeast2-a + - australia-southeast2-b + - australia-southeast2-c + europe-west9: + desc: Paris, France, Europe + location: + display: Paris, France, Europe + latitude: 48.8588897 + longitude: 2.32004102 + zone: + - europe-west9-a + - europe-west9-b + - europe-west9-c + africa-south1: + desc: Johannesburg, South Africa + location: + display: Johannesburg, South Africa + latitude: -26.205 + longitude: 28.049722 + zone: + - africa-south1-a + - africa-south1-b + - africa-south1-c + asia-south2: + desc: Delhi, India, APAC + location: + display: Delhi, India, APAC + latitude: 28.6273928 + longitude: 77.1716954 + zone: + - asia-south2-a + - asia-south2-b + - asia-south2-c + southamerica-west1: + desc: Santiago, Chile, South America + location: + display: Santiago, Chile, South America + latitude: -33.4377756 + longitude: -70.6504502 + zone: + - southamerica-west1-a + - southamerica-west1-b + - southamerica-west1-c + me-west1: + desc: Tel Aviv, Israel, Middle East + location: + display: Tel Aviv, Israel, Middle East + latitude: 32.0956658 + longitude: 34.8062567 + zone: + - me-west1-a + - me-west1-b + - me-west1-c + us-east5: + desc: Columbus, Ohio, North America + location: + display: Columbus, Ohio, North America + latitude: 39.9622601 + longitude: -83.0007065 + zone: + - us-east5-a + - us-east5-b + - us-east5-c + europe-west10: + desc: Berlin, Germany, Europe + location: + display: Berlin, Germany, Europe + latitude: 52.5170365 + longitude: 13.3888599 + zone: + - europe-west10-a + - europe-west10-b + - europe-west10-c + ibm: + desc: IBM Cloud + driver: ibm-driver-v1.0.so + region: + au-syd: + desc: Sydney (Australia) + location: + display: Australia (Sydney) + latitude: -33.86882 + longitude: 151.209296 + zone: + - au-syd-1 + - au-syd-2 + - au-syd-3 + br-sao: + desc: Sao Paulo (Brazil) + location: + display: Brazil (Sao Paulo) + latitude: -23.55052 + longitude: -46.633309 + zone: + - br-sao-1 + - br-sao-2 + - br-sao-3 + ca-tor: + desc: Toronto (Canada) + location: + display: Toronto (Canada) + latitude: 43.655226 + longitude: -79.383184 + zone: + - ca-tor-1 + - ca-tor-2 + - ca-tor-3 + eu-de: + desc: Frankfurt (Germany) + location: + display: Germany (Frankfurt) + latitude: 50.110722 + longitude: 8.682127 + zone: + - eu-de-1 + - eu-de-2 + - eu-de-3 + eu-gb: + desc: London (United Kingdom) + location: + display: UK (London) + latitude: 51.507351 + longitude: -0.127758 + zone: + - eu-gb-1 + - eu-gb-2 + - eu-gb-3 + jp-osa: + desc: Osaka (Japan) + location: + display: Osaka (Japan) + latitude: 34.693738 + longitude: 135.502165 + zone: + - jp-osa-1 + - jp-osa-2 + - jp-osa-3 + jp-tok: + desc: Tokyo (Japan) + location: + display: Japan (Tokyo) + latitude: 35.689588 + longitude: 139.691706 + zone: + - jp-tok-1 + - jp-tok-2 + - jp-tok-3 + us-east: + desc: Washington DC (US East) + location: + display: Washington DC (US East) + latitude: 38.907192 + longitude: -77.036871 + zone: + - us-east-1 + - us-east-2 + - us-east-3 + us-south: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - us-south-1 + - us-south-2 + - us-south-3 + eu-es: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - eu-es-1 + - eu-es-2 + - eu-es-3 + ktcloud: + desc: KT Cloud (Classic without VPC) + driver: ktcloud-driver-v1.0.so + region: + kr-central-a: + desc: Cheon-an - South Korea + location: + display: Cheon-an A - South Korea + latitude: 36.812483 + longitude: 127.107005 + zone: [] + kr-central-b: + desc: Cheon-an - South Korea + location: + display: Cheon-an B - South Korea + latitude: 36.832583 + longitude: 127.157205 + zone: [] + kr-kimhae: + desc: Kimhae - South Korea + location: + display: Kimhae - South Korea + latitude: 35.228545 + longitude: 128.889352 + zone: [] + kr-seoul-m: + desc: Seoul - South Korea + location: + display: South Korea (Seoul) + latitude: 37.566535 + longitude: 126.977969 + zone: [] + kr-seoul-m2: + desc: Seoul - South Korea + location: + display: South Korea (Seoul) + latitude: 37.466535 + longitude: 126.877969 + zone: [] + KOR-Seoul: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - 95e2f517-d64a-4866-8585-5177c256f7c7 + - d7d0177e-6cda-404a-a46f-a5b356d2874e + KOR-Central: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - 9845bd17-d438-4bde-816d-1b12f37d5080 + - eceb5d65-6571-4696-875f-5a17949f3317 + KOR-HA: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - dfd6f03d-dae5-458e-a2ea-cb6a55d0d994 + ktcloudvpc: + desc: KT Cloud (VPC) + driver: ktcloudvpc-driver-v1.0.so + region: + kr-dx-m1: + desc: Seoul - South Korea + location: + display: '' + latitude: '' + longitude: '' + zone: [] + ncp: + desc: Naver Cloud Platform (Classic without VPC) + driver: ncp-driver-v1.0.so + region: + den: + desc: Germany + location: + display: Germany + latitude: 50.1108 + longitude: 8.6821 + zone: [] + jpn: + desc: Japan + location: + display: Japan + latitude: 35.6893 + longitude: 139.6917 + zone: [] + kr: + desc: Korea + location: + display: South Korea (Seoul) + latitude: 37.4754 + longitude: 126.8831 + zone: [] + sgn: + desc: Singapore + location: + display: Singapore + latitude: 1.3402 + longitude: 103.7041 + zone: [] + uswn: + desc: US West + location: + display: US Western + latitude: 37.351 + longitude: -121.963 + zone: [] + KR: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - KR-1 + - KR-2 + USWN: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - USWN-1 + DEN: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - DEN-1 + HK: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - HK-1 + SGN: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - SGN-1 + JPN: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - JPN-1 + ncpvpc: + desc: Naver Cloud Platform (VPC) + driver: ncpvpc-driver-v1.0.so + region: + kr: + desc: Korea 1 + location: + display: South Korea (Seoul) + latitude: 37.4754 + longitude: 126.8831 + zone: [] + sgn: + desc: Singapore 4 + location: + display: Singapore + latitude: 1.3402 + longitude: 103.7041 + zone: [] + KR: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - KR-1 + - KR-2 + SGN: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - SGN-4 + - SGN-5 + JPN: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - JPN-4 + - JPN-5 + nhncloud: + desc: NHN Cloud + driver: nhncloud-driver-v1.0.so + region: + jp1: + desc: Japan (Tokyo) + location: + display: Japan (Tokyo) + latitude: 35.412 + longitude: 139.423 + zone: [] + kr1: + desc: South Korea (Pangyo) + location: + display: South Korea (Pangyo) + latitude: 37.390889 + longitude: 127.096792 + zone: [] + kr2: + desc: South Korea (Pyeongchon) + location: + display: South Korea (Pyeongchon) + latitude: 37.392584 + longitude: 126.95145 + zone: [] + KR1: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - kr-pub-a + - kr-pub-b + KR2: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - kr2-pub-a + - kr2-pub-b + JP1: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - jp-pub-a + - jp-pub-b + openstack: + desc: OpenStack + driver: openstack-driver-v1.0.so + region: + regionone: + desc: Korea Daejeon (Internal) + location: + display: South Korea (Daejeon) + latitude: 36.3804 + longitude: 127.365 + zone: [] + tencent: + desc: Tencent Cloud + driver: tencent-driver-v1.0.so + region: + ap-bangkok: + desc: Bangkok + location: + display: Southeast Asia (Bangkok) + latitude: 13.756331 + longitude: 100.501765 + zone: + - ap-bangkok-1 + - ap-bangkok-2 + ap-beijing: + desc: Beijing + location: + display: North China (Beijing) + latitude: 39.9042 + longitude: 116.407396 + zone: + - ap-beijing-1 + - ap-beijing-2 + - ap-beijing-3 + - ap-beijing-4 + - ap-beijing-5 + - ap-beijing-6 + - ap-beijing-7 + - ap-beijing-8 + - ap-beijing-cdz-haerbin-1 + - ap-beijing-cdz-haerbindianxin-1 + - ap-beijing-cdz-kscs-1 + - ap-beijing-cdz-tmap-1 + - ap-beijing-cdz-zhuanzhuan-1 + - ap-beijing-ez-taiyuan-1 + - ap-beijing-tez-changchun-1 + - ap-beijing-tez-haerbin-1 + - ap-beijing-tez-shenyang-1 + - ap-beijing-tez-shenyang-2 + - ap-beijing-tez-shijiazhuang-2 + ap-chengdu: + desc: Chengdu + location: + display: Southwest China (Chengdu) + latitude: 30.572815 + longitude: 104.066801 + zone: + - ap-chengdu-1 + - ap-chengdu-2 + - ap-chengdu-tez-chengdu-1 + - ap-chengdu-tez-chengdu-2 + - ap-chengdu-tez-chongqing-1 + - ap-chengdu-tez-kunming-1 + - ap-chengdu-tez-kunming-2 + - ap-chengdu-tez-xian-1 + ap-chongqing: + desc: Chongqing + location: + display: Southwest China (Chongqing) + latitude: 29.431586 + longitude: 106.912251 + zone: + - ap-chongqing-1 + ap-guangzhou: + desc: Guangzhou + location: + display: South China (Guangzhou) + latitude: 23.12911 + longitude: 113.264385 + zone: + - ap-guangzhou-1 + - ap-guangzhou-2 + - ap-guangzhou-3 + - ap-guangzhou-4 + - ap-guangzhou-5 + - ap-guangzhou-51 + - ap-guangzhou-6 + - ap-guangzhou-7 + - ap-guangzhou-8 + - ap-guangzhou-tez-changsha-1 + - ap-guangzhou-tez-dongguan-1 + - ap-guangzhou-tez-guangzhou-1 + - ap-guangzhou-tez-guangzhou-2 + - ap-guangzhou-tez-guangzhou-3 + - ap-guangzhou-tez-nanning-1 + - ap-guangzhou-tez-nanning-2 + - ap-guangzhou-tez-nanning-3 + - ap-guangzhou-tez-shenzhen-1 + - ap-guangzhou-tez-wuhan-1 + - ap-guangzhou-tez-zhengzhou-1 + ap-hongkong: + desc: HongKong + location: + display: Hong Kong + latitude: 22.396228 + longitude: 114.108497 + zone: + - ap-hongkong-1 + - ap-hongkong-2 + - ap-hongkong-3 + - ap-hongkong-cdz-lsszy-1 + ap-jakarta: + desc: Jakarta + location: + display: Southeast Asia (Jakarta) + latitude: -6.17511 + longitude: 106.865036 + zone: + - ap-jakarta-1 + - ap-jakarta-2 + ap-mumbai: + desc: Mumbai + location: + display: India (Mumbai) + latitude: 19.075983 + longitude: 72.877655 + zone: + - ap-mumbai-1 + - ap-mumbai-2 + ap-nanjing: + desc: Nanjing + location: + display: East China (Nanjing) + latitude: 32.060255 + longitude: 118.796877 + zone: + - ap-nanjing-1 + - ap-nanjing-2 + - ap-nanjing-3 + ap-seoul: + desc: Seoul + location: + display: South Korea (Seoul) + latitude: 37.566536 + longitude: 126.977966 + zone: + - ap-seoul-1 + - ap-seoul-2 + ap-shanghai: + desc: Shanghai + location: + display: East China (Shanghai) + latitude: 31.23039 + longitude: 121.473702 + zone: + - ap-shanghai-1 + - ap-shanghai-2 + - ap-shanghai-3 + - ap-shanghai-4 + - ap-shanghai-5 + - ap-shanghai-6 + - ap-shanghai-7 + - ap-shanghai-8 + - ap-shanghai-cdz-yrkj-1 + - ap-shanghai-ez-nanchang-1 + - ap-shanghai-tez-hefei-1 + - ap-shanghai-tez-jinan-1 + - ap-shanghai-tez-nanchang-1 + - ap-shanghai-tez-ningbo-1 + - ap-shanghai-tez-ningbo-2 + - ap-shanghai-tez-qingdao-1 + - ap-shanghai-tez-wuxi-1 + - ap-shanghai-tez-wuxi-2 + ap-singapore: + desc: Singapore + location: + display: Singapore + latitude: 1.352083 + longitude: 103.819839 + zone: + - ap-singapore-1 + - ap-singapore-2 + - ap-singapore-3 + - ap-singapore-4 + - ap-singapore-cdz-grm-1 + ap-tokyo: + desc: Tokyo + location: + display: Japan (Tokyo) + latitude: 35.689487 + longitude: 139.691711 + zone: + - ap-tokyo-1 + - ap-tokyo-2 + eu-frankfurt: + desc: Frankfurt + location: + display: Germany (Frankfurt) + latitude: 50.110922 + longitude: 8.682127 + zone: + - eu-frankfurt-1 + - eu-frankfurt-2 + - eu-frankfurt-3 + eu-moscow: + desc: Moscow + location: + display: Europe (Moscow) + latitude: 55.755826 + longitude: 37.6173 + zone: [] + na-ashburn: + desc: Virginia + location: + display: USA (Virginia) + latitude: 37.431573 + longitude: -78.656894 + zone: + - na-ashburn-1 + - na-ashburn-2 + na-siliconvalley: + desc: SiliconValley + location: + display: Western US (Silicon Valley) + latitude: 37.387474 + longitude: -122.057543 + zone: + - na-siliconvalley-1 + - na-siliconvalley-2 + na-toronto: + desc: Toronto + location: + display: North America (Toronto) + latitude: 43.653226 + longitude: -79.383184 + zone: + - na-toronto-1 + sa-saopaulo: + desc: '' + location: + display: '' + latitude: null + longitude: null + zone: + - sa-saopaulo-1 diff --git a/go.mod b/go.mod index b2601c2d5..11f0a53b6 100644 --- a/go.mod +++ b/go.mod @@ -48,6 +48,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/jedib0t/go-pretty/v6 v6.5.6 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/labstack/gommon v0.4.2 // indirect @@ -56,12 +57,14 @@ require ( github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mattn/go-runewidth v0.0.15 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pelletier/go-toml/v2 v2.1.1 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/rivo/uniseg v0.2.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/sagikazarmark/locafero v0.4.0 // indirect github.com/sagikazarmark/slog-shim v0.1.0 // indirect diff --git a/go.sum b/go.sum index e8a719fea..24b7a5998 100644 --- a/go.sum +++ b/go.sum @@ -147,6 +147,8 @@ github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0f github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v1.3.0/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= +github.com/jedib0t/go-pretty/v6 v6.5.6 h1:nKXVLqPfAwY7sWcYXdNZZZ2fjqDpAtj9UeWupgfUxSg= +github.com/jedib0t/go-pretty/v6 v6.5.6/go.mod h1:5LQIxa52oJ/DlDSLv0HEkWOFMDGoWkJb9ss5KqPpJBg= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= @@ -190,6 +192,8 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= +github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-sqlite3 v1.14.15/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= github.com/mattn/go-sqlite3 v1.14.19 h1:fhGleo2h1p8tVChob4I9HpmVFIAkKGpiukdrgQbWfGI= @@ -218,6 +222,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6OkFY5QxjkYwrChwuRruF69c169dPK26NUlk= github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= +github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= diff --git a/src/core/common/config.go b/src/core/common/config.go index a08742006..25800393b 100644 --- a/src/core/common/config.go +++ b/src/core/common/config.go @@ -20,9 +20,77 @@ import ( "os" "strings" + "github.com/jedib0t/go-pretty/v6/table" + cbstore_utils "github.com/cloud-barista/cb-store/utils" ) +type CloudInfo struct { + CSPs map[string]CSPDetail `mapstructure:"cloud"` +} + +type CSPDetail struct { + Description string `mapstructure:"desc"` + Driver string `mapstructure:"driver"` + Links []string `mapstructure:"link"` + Regions map[string]RegionDetail `mapstructure:"region"` +} + +type RegionDetail struct { + Description string `mapstructure:"desc"` + Location Location `mapstructure:"location"` + Zones []string `mapstructure:"zone"` +} + +type Location struct { + Display string `mapstructure:"display"` + Latitude float64 `mapstructure:"latitude"` + Longitude float64 `mapstructure:"longitude"` +} + +var RuntimeCloudInfo = CloudInfo{} + +// PrintCloudInfoTable prints CloudInfo in table format +func PrintCloudInfoTable(cloudInfo CloudInfo) { + t := table.NewWriter() + t.SetOutputMirror(os.Stdout) + t.AppendHeader(table.Row{"CSP", "Region", "Location", "(Lati:Long)", "Zones"}) + + for cspName, cspDetail := range cloudInfo.CSPs { + for regionName, regionDetail := range cspDetail.Regions { + latLong := formatLatLong(regionDetail.Location.Latitude, regionDetail.Location.Longitude) + zones := formatZones(regionDetail.Zones) + t.AppendRow(table.Row{cspName, regionName, regionDetail.Location.Display, latLong, zones}) + } + } + t.SortBy([]table.SortBy{ + {Name: "CSP", Mode: table.Asc}, + {Name: "Region", Mode: table.Asc}, + }) + t.Render() +} + +func formatLatLong(latitude, longitude float64) string { + if latitude == 0.0 && longitude == 0.0 { + return "" + } + return "(" + fmt.Sprintf("%.2f", latitude) + ":" + fmt.Sprintf("%.2f", longitude) + ")" +} + +func formatZones(zones []string) string { + if len(zones) == 0 { + return "" + } + var formattedZones string + for i, zone := range zones { + formattedZones += zone + if i < len(zones)-1 { + formattedZones += " " + } + } + return formattedZones +} + // RuntimeLatancyMap is global variable for LatancyMap var RuntimeLatancyMap = [][]string{} diff --git a/src/main.go b/src/main.go index 18ad410dc..334b0856e 100644 --- a/src/main.go +++ b/src/main.go @@ -41,26 +41,46 @@ import ( // init for main func init() { - profile := "cloud_conf" - setConfig(profile) + setConfig() } // setConfig get cloud settings from a config file -func setConfig(profile string) { +func setConfig() { + fileName := "cloud_conf" viper.AddConfigPath(".") viper.AddConfigPath("./conf/") viper.AddConfigPath("../conf/") - viper.SetConfigName(profile) + viper.SetConfigName(fileName) viper.SetConfigType("yaml") err := viper.ReadInConfig() - if err != nil { // Handle errors reading the config file - panic(fmt.Errorf("fatal error config file: %w", err)) + if err != nil { + panic(fmt.Errorf("fatal error reading cloud_conf: %w", err)) } + fmt.Println(viper.ConfigFileUsed()) err = viper.Unmarshal(&common.RuntimeConf) if err != nil { panic(err) } + cloudInfoViper := viper.New() + fileName = "cloudinfo" + cloudInfoViper.AddConfigPath(".") + cloudInfoViper.AddConfigPath("./assets/") + cloudInfoViper.AddConfigPath("../assets/") + cloudInfoViper.SetConfigName(fileName) + cloudInfoViper.SetConfigType("yaml") + err = cloudInfoViper.ReadInConfig() + if err != nil { + panic(fmt.Errorf("fatal error reading cloudinfo config file: %w", err)) + } + fmt.Println(cloudInfoViper.ConfigFileUsed()) + err = cloudInfoViper.Unmarshal(&common.RuntimeCloudInfo) + if err != nil { + panic(err) + } + // fmt.Printf("%+v\n", common.RuntimeCloudInfo) + common.PrintCloudInfoTable(common.RuntimeCloudInfo) + // const mrttArrayXMax = 300 // const mrttArrayYMax = 300 // common.RuntimeLatancyMap = make([][]string, mrttArrayXMax) From bca0f7b4e43c1784450b919ff9a12c5b553e1fd6 Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Fri, 29 Mar 2024 17:06:14 +0900 Subject: [PATCH 2/2] Apply cloud top level key to script --- scripts/misc/update-cloudinfo.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/misc/update-cloudinfo.py b/scripts/misc/update-cloudinfo.py index ab113cbed..db5508950 100755 --- a/scripts/misc/update-cloudinfo.py +++ b/scripts/misc/update-cloudinfo.py @@ -156,8 +156,11 @@ def compare_and_update_yaml(cloud_info, output_file_path, region_zones): current_regions_and_zones = region_zones csps = set(current_regions_and_zones.keys()) + if "cloud" not in cloud_info: + cloud_info["cloud"] = {} + for csp in csps: - file_csp_regions = set(cloud_info[csp]['region'].keys()) + file_csp_regions = set(cloud_info["cloud"][csp]['region'].keys()) current_csp_regions = set(current_regions_and_zones[csp].keys()) missing_in_file = current_csp_regions - file_csp_regions @@ -175,7 +178,7 @@ def compare_and_update_yaml(cloud_info, output_file_path, region_zones): desc = fetch_region_description(region) display = desc.split('(')[-1].rstrip(')') if '(' in desc else desc # Improved parsing location_details = fetch_location_details(display) - cloud_info[csp]['region'][region] = { + cloud_info["cloud"][csp]['region'][region] = { 'desc': desc, 'location': location_details, 'zone': current_regions_and_zones[csp][region] @@ -185,7 +188,7 @@ def compare_and_update_yaml(cloud_info, output_file_path, region_zones): print(f"Location: {location_details['display']} ({location_details['latitude']}, {location_details['longitude']})") print(f"Zones: {', '.join(current_regions_and_zones[csp][region])}\n") else: - cloud_info[csp]['region'][region]['zone'] = current_regions_and_zones[csp][region] + cloud_info["cloud"][csp]['region'][region]['zone'] = current_regions_and_zones[csp][region] print(f"Updated zones for region: {region}") print(f"Zones: {', '.join(current_regions_and_zones[csp][region])}\n")