You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
3.1 KiB
77 lines
3.1 KiB
import os |
|
|
|
consul_token = os.environ.get('consul_token','0a79caed-8a45-49b9-97a6-86e50e12b234') |
|
consul_url = os.environ.get('consul_url','http://10.5.148.67:8500/v1') |
|
admin_passwd = os.environ.get('admin_passwd','123456') |
|
log_level = os.environ.get('log_level','INFO') |
|
|
|
vendors = {'alicloud': '阿里云','tencent_cloud': '腾讯云','huaweicloud': '华为云', 'awscloud': 'AWS云'} |
|
# https://aws.amazon.com/cn/about-aws/global-infrastructure/regional-product-services |
|
regions = { |
|
"awscloud":{ |
|
"none": "无", |
|
"us-east-1": "美国东部(弗吉尼亚州北部)", |
|
"us-west-1": "美国西部(北加利福尼亚)", |
|
"ap-east-1": "亚太地区(香港)", |
|
"ap-south-1": "亚太地区(孟买)", |
|
"ap-northeast-2": "亚太地区(首尔)", |
|
"ap-southeast-1": "亚太地区(新加坡)", |
|
"ap-southeast-3": "亚太地区(雅加达)", |
|
"ap-northeast-1": "亚太地区(东京)", |
|
"eu-central-1": "欧洲(法兰克福)", |
|
"eu-west-2": "欧洲(伦敦)", |
|
"eu-west-3": "欧洲(巴黎)", |
|
}, |
|
"huaweicloud": { |
|
"none": "无", |
|
"cn-east-3": "华东-上海一", |
|
"cn-east-2": "华东-上海二", |
|
"cn-south-1": "华南-广州", |
|
"cn-north-1": "华北-北京一", |
|
"cn-north-4": "华北-北京四", |
|
"cn-southwest-2": "西南-贵阳一", |
|
"ap-southeast-1": "中国-香港", |
|
"ap-southeast-3": "新加坡", |
|
}, |
|
"alicloud": { |
|
"none": "无", |
|
"cn-qingdao": "华北1(青岛)", |
|
"cn-beijing": "华北2(北京)", |
|
"cn-zhangjiakou": "华北3(张家口)", |
|
"cn-huhehaote": "华北5(呼和浩特)", |
|
"cn-wulanchabu": "华北6(乌兰察布)", |
|
"cn-hangzhou": "华东1(杭州)", |
|
"cn-shanghai": "华东2(上海)", |
|
"cn-shenzhen": "华南1(深圳)", |
|
"cn-heyuan": "华南2(河源)", |
|
"cn-guangzhou": "华南3(广州)", |
|
"cn-chengdu": "西南1(成都)", |
|
"cn-hongkong": "中国(香港)", |
|
"cn-nanjing": "华东5(南京-本地地域)", |
|
"us-east-1": "美国东部1(弗吉尼亚)", |
|
"us-west-1": "美国(硅谷)", |
|
"eu-west-1": "英国(伦敦)", |
|
"ap-southeast-1": "新加坡", |
|
"ap-northeast-1": "日本(东京)", |
|
"ap-south-1": "印度(孟买)", |
|
"ap-southeast-7": "泰国(曼谷)", |
|
}, |
|
"tencent_cloud": { |
|
"none": "无", |
|
"ap-nanjing": "华东地区(南京)", |
|
"ap-shanghai": "华东地区(上海)", |
|
"ap-guangzhou": "华南地区(广州)", |
|
"ap-beijing": "华北地区(北京)", |
|
"ap-tianjin": "华北地区(天津)", |
|
"ap-chengdu": "西南地区(成都)", |
|
"ap-chongqing": "西南地区(重庆)", |
|
"ap-hongkong": "港澳台地区(中国香港)", |
|
"ap-tokyo": "亚太东北(东京)", |
|
"ap-seoul": "亚太东北(首尔)", |
|
"ap-singapore": "亚太东南(新加坡)", |
|
"ap-mumbai": "亚太南部(孟买)", |
|
"na-ashburn": "美国东部(弗吉尼亚)", |
|
"na-siliconvalley": "美国西部(硅谷)", |
|
"eu-frankfurt": "欧洲地区(法兰克福)", |
|
}, |
|
}
|
|
|