aliyun / alibaba-cloud-sdk-go

Alibaba Cloud SDK for Go
Apache License 2.0
1.16k stars 273 forks source link

Need to update Endpoints configs for cn-guangzhou? #525

Open shangfu-peng opened 3 years ago

shangfu-peng commented 3 years ago

Currently, the cn-guangzhou is available in the web portal, but it is missed in the endpoints config.

https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/sdk/endpoints/endpoints_config.go#L3767

It would be failed to create a mongodb in guangzhou using the API. | Resource alicloud_mongodb_instance CreateDBInstance Failed!!! [SDK alibaba-cloud-sdk-go ERROR]: | Post "https://dds.cn-guangzhou.aliyuncs.com/?XXXX&ZoneId=cn-guangzhou-a": dial tcp: lookup dds.cn-guangzhou.aliyuncs.com on 127.0.1.1:53: no such host

Based on the endpoints, https://developer.aliyun.com/endpoints, it should be mongodb.cn-guangzhou.aliyuncs.com instead of dds.cn-guangzhou.aliyuncs.com.