{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/machine/issues/1513","labels_url":"https://api.github.com/repos/docker/machine/issues/1513/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/1513/comments","events_url":"https://api.github.com/repos/docker/machine/issues/1513/events","html_url":"https://github.com/docker/machine/issues/1513","id":94714769,"number":1513,"title":"docker machine 0.3.0(0a251fe)  amazonec2   driver cannot run in AWS China(cn-north-1)","user":{"login":"yexingok","id":368081,"avatar_url":"https://avatars.githubusercontent.com/u/368081?v=3","gravatar_id":"","url":"https://api.github.com/users/yexingok","html_url":"https://github.com/yexingok","followers_url":"https://api.github.com/users/yexingok/followers","following_url":"https://api.github.com/users/yexingok/following{/other_user}","gists_url":"https://api.github.com/users/yexingok/gists{/gist_id}","starred_url":"https://api.github.com/users/yexingok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yexingok/subscriptions","organizations_url":"https://api.github.com/users/yexingok/orgs","repos_url":"https://api.github.com/users/yexingok/repos","events_url":"https://api.github.com/users/yexingok/events{/privacy}","received_events_url":"https://api.github.com/users/yexingok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-13T12:55:43Z","updated_at":"2015-07-13T12:55:43Z","closed_at":null,"body":"Hi Forks,\r\n\r\nI notice when use docker-machine to launch machine in AWS China the endpoint is not right, the error message is:\r\n\r\n'''client encountered error while doing the request: Get https://ec2.cn-north-1.amazonaws.com/?Action=DescribeKeyPairs&Version=2014-06-15: dial tcp: lookup ec2.cn-north-1.amazonaws.com: no such hostError creating machine: Problem with AWS API call: client encountered error while doing the request: Get https://ec2.cn-north-1.amazonaws.com/?Action=DescribeKeyPairs&Version=2014-06-15: dial tcp: lookup ec2.cn-north-1.amazonaws.com: no such host\r\nYou will want to check the provider to make sure the machine and associated resources were properly removed.\r\n'''\r\nThe docker-machine version I used:\r\ndocker-machine version 0.3.0 (0a251fe)\r\n\r\nFrom our experience on AWS China, the AWS China is an a Isolated region and the endpoint is:\r\nec2.cn-north-1.amazonaws.com.cn \r\nnot the same pattern with other AWS region https://ec2.%s.amazonaws.com\r\n\r\nYou can reproduce this issue by using docker-machine to launch instances inside AWS China, if needed, I can provide a temp AWS China credential,\r\n\r\nThe same issue report by @ehazlett  with #1224 before, also ping @xiaoluffy  \r\n\r\nI am guessing need someone help on the NewEC2 function on this file:\r\nhttps://github.com/docker/machine/blob/ff4650b9ed7ed145e70de4378cf729e8df6e3a5a/drivers/amazonec2/amz/ec2.go\r\n\r\nThanks!"}}