{"action":"created","comment":{"url":"https://api.github.com/repos/docker/machine/pulls/comments/23539390","id":23539390,"diff_hunk":"@@ -0,0 +1,51 @@\n+package amazonec2\n+\n+import (\n+\t\"errors\"\n+)\n+\n+var (\n+\terrInvalidRegion  = errors.New(\"invalid region specified\")\n+\terrNoVpcs         = errors.New(\"No VPCs found in region\")\n+\terrMachineFailure = errors.New(\"Machine failed to start\")\n+\terrNoIP           = errors.New(\"No IP Address associated with the instance\")\n+\terrComplete       = errors.New(\"Complete\")\n+)\n+\n+type region struct {\n+\tAmiId string\n+}\n+\n+var regionDetails map[string]*region = map[string]*region{\n+\t\"ap-northeast-1\": {\"ami-44f1e245\"},\n+\t\"ap-southeast-1\": {\"ami-f95875ab\"},\n+\t\"ap-southeast-2\": {\"ami-890b62b3\"},\n+\t\"cn-north-1\":     {\"ami-fe7ae8c7\"},\n+\t\"eu-west-1\":      {\"ami-823686f5\"},\n+\t\"eu-central-1\":   {\"ami-ac1524b1\"},\n+\t\"sa-east-1\":      {\"ami-c770c1da\"},\n+\t\"us-east-1\":      {\"ami-4ae27e22\"},\n+\t\"us-west-1\":      {\"ami-d1180894\"},\n+\t\"us-west-2\":      {\"ami-898dd9b9\"},\n+\t\"us-gov-west-1\":  {\"ami-cf5630ec\"},\n+}\n+\n+func awsRegionsList() []string {","path":"drivers/amazonec2/utils.go","position":33,"original_position":33,"commit_id":"62012ca7267e1e1f212421900c13895c76fa174e","original_commit_id":"54617151ce08274407a61ce1070b406050d996aa","user":{"login":"ehazlett","id":260642,"avatar_url":"https://avatars.githubusercontent.com/u/260642?v=3","gravatar_id":"","url":"https://api.github.com/users/ehazlett","html_url":"https://github.com/ehazlett","followers_url":"https://api.github.com/users/ehazlett/followers","following_url":"https://api.github.com/users/ehazlett/following{/other_user}","gists_url":"https://api.github.com/users/ehazlett/gists{/gist_id}","starred_url":"https://api.github.com/users/ehazlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehazlett/subscriptions","organizations_url":"https://api.github.com/users/ehazlett/orgs","repos_url":"https://api.github.com/users/ehazlett/repos","events_url":"https://api.github.com/users/ehazlett/events{/privacy}","received_events_url":"https://api.github.com/users/ehazlett/received_events","type":"User","site_admin":false},"body":"Is this needed?","created_at":"2015-01-26T15:50:59Z","updated_at":"2015-01-26T15:50:59Z","html_url":"https://github.com/docker/machine/pull/400#discussion_r23539390","pull_request_url":"https://api.github.com/repos/docker/machine/pulls/400","_links":{"self":{"href":"https://api.github.com/repos/docker/machine/pulls/comments/23539390"},"html":{"href":"https://github.com/docker/machine/pull/400#discussion_r23539390"},"pull_request":{"href":"https://api.github.com/repos/docker/machine/pulls/400"}}},"pull_request":{"url":"https://api.github.com/repos/docker/machine/pulls/400","id":27961544,"html_url":"https://github.com/docker/machine/pull/400","diff_url":"https://github.com/docker/machine/pull/400.diff","patch_url":"https://github.com/docker/machine/pull/400.patch","issue_url":"https://api.github.com/repos/docker/machine/issues/400","number":400,"state":"open","locked":false,"title":"Adds region AMI defaults","user":{"login":"sthulb","id":103217,"avatar_url":"https://avatars.githubusercontent.com/u/103217?v=3","gravatar_id":"","url":"https://api.github.com/users/sthulb","html_url":"https://github.com/sthulb","followers_url":"https://api.github.com/users/sthulb/followers","following_url":"https://api.github.com/users/sthulb/following{/other_user}","gists_url":"https://api.github.com/users/sthulb/gists{/gist_id}","starred_url":"https://api.github.com/users/sthulb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sthulb/subscriptions","organizations_url":"https://api.github.com/users/sthulb/orgs","repos_url":"https://api.github.com/users/sthulb/repos","events_url":"https://api.github.com/users/sthulb/events{/privacy}","received_events_url":"https://api.github.com/users/sthulb/received_events","type":"User","site_admin":false},"body":"This specifies a default ami for all regions.\r\n\r\nRefs: #287","created_at":"2015-01-23T22:40:23Z","updated_at":"2015-01-26T15:50:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81cad8a57f0988dc329ddf6cbfe1a33571e6a5b9","assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/machine/milestones/1","labels_url":"https://api.github.com/repos/docker/machine/milestones/1/labels","id":897504,"number":1,"title":"0.1.0","description":"","creator":{"login":"bfirsh","id":40906,"avatar_url":"https://avatars.githubusercontent.com/u/40906?v=3","gravatar_id":"","url":"https://api.github.com/users/bfirsh","html_url":"https://github.com/bfirsh","followers_url":"https://api.github.com/users/bfirsh/followers","following_url":"https://api.github.com/users/bfirsh/following{/other_user}","gists_url":"https://api.github.com/users/bfirsh/gists{/gist_id}","starred_url":"https://api.github.com/users/bfirsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfirsh/subscriptions","organizations_url":"https://api.github.com/users/bfirsh/orgs","repos_url":"https://api.github.com/users/bfirsh/repos","events_url":"https://api.github.com/users/bfirsh/events{/privacy}","received_events_url":"https://api.github.com/users/bfirsh/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":19,"state":"open","created_at":"2014-12-09T16:21:27Z","updated_at":"2015-01-24T14:38:02Z","due_on":"2015-02-03T05:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/docker/machine/pulls/400/commits","review_comments_url":"https://api.github.com/repos/docker/machine/pulls/400/comments","review_comment_url":"https://api.github.com/repos/docker/machine/pulls/comments/{number}","comments_url":"https://api.github.com/repos/docker/machine/issues/400/comments","statuses_url":"https://api.github.com/repos/docker/machine/statuses/62012ca7267e1e1f212421900c13895c76fa174e","head":{"label":"sthulb:ec2-ami","ref":"ec2-ami","sha":"62012ca7267e1e1f212421900c13895c76fa174e","user":{"login":"sthulb","id":103217,"avatar_url":"https://avatars.githubusercontent.com/u/103217?v=3","gravatar_id":"","url":"https://api.github.com/users/sthulb","html_url":"https://github.com/sthulb","followers_url":"https://api.github.com/users/sthulb/followers","following_url":"https://api.github.com/users/sthulb/following{/other_user}","gists_url":"https://api.github.com/users/sthulb/gists{/gist_id}","starred_url":"https://api.github.com/users/sthulb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sthulb/subscriptions","organizations_url":"https://api.github.com/users/sthulb/orgs","repos_url":"https://api.github.com/users/sthulb/repos","events_url":"https://api.github.com/users/sthulb/events{/privacy}","received_events_url":"https://api.github.com/users/sthulb/received_events","type":"User","site_admin":false},"repo":{"id":27667591,"name":"machine","full_name":"sthulb/machine","owner":{"login":"sthulb","id":103217,"avatar_url":"https://avatars.githubusercontent.com/u/103217?v=3","gravatar_id":"","url":"https://api.github.com/users/sthulb","html_url":"https://github.com/sthulb","followers_url":"https://api.github.com/users/sthulb/followers","following_url":"https://api.github.com/users/sthulb/following{/other_user}","gists_url":"https://api.github.com/users/sthulb/gists{/gist_id}","starred_url":"https://api.github.com/users/sthulb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sthulb/subscriptions","organizations_url":"https://api.github.com/users/sthulb/orgs","repos_url":"https://api.github.com/users/sthulb/repos","events_url":"https://api.github.com/users/sthulb/events{/privacy}","received_events_url":"https://api.github.com/users/sthulb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sthulb/machine","description":"Machine management for a container-centric world","fork":true,"url":"https://api.github.com/repos/sthulb/machine","forks_url":"https://api.github.com/repos/sthulb/machine/forks","keys_url":"https://api.github.com/repos/sthulb/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sthulb/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sthulb/machine/teams","hooks_url":"https://api.github.com/repos/sthulb/machine/hooks","issue_events_url":"https://api.github.com/repos/sthulb/machine/issues/events{/number}","events_url":"https://api.github.com/repos/sthulb/machine/events","assignees_url":"https://api.github.com/repos/sthulb/machine/assignees{/user}","branches_url":"https://api.github.com/repos/sthulb/machine/branches{/branch}","tags_url":"https://api.github.com/repos/sthulb/machine/tags","blobs_url":"https://api.github.com/repos/sthulb/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sthulb/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sthulb/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/sthulb/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sthulb/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/sthulb/machine/languages","stargazers_url":"https://api.github.com/repos/sthulb/machine/stargazers","contributors_url":"https://api.github.com/repos/sthulb/machine/contributors","subscribers_url":"https://api.github.com/repos/sthulb/machine/subscribers","subscription_url":"https://api.github.com/repos/sthulb/machine/subscription","commits_url":"https://api.github.com/repos/sthulb/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/sthulb/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/sthulb/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/sthulb/machine/issues/comments/{number}","contents_url":"https://api.github.com/repos/sthulb/machine/contents/{+path}","compare_url":"https://api.github.com/repos/sthulb/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sthulb/machine/merges","archive_url":"https://api.github.com/repos/sthulb/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sthulb/machine/downloads","issues_url":"https://api.github.com/repos/sthulb/machine/issues{/number}","pulls_url":"https://api.github.com/repos/sthulb/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/sthulb/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/sthulb/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sthulb/machine/labels{/name}","releases_url":"https://api.github.com/repos/sthulb/machine/releases{/id}","created_at":"2014-12-07T11:12:49Z","updated_at":"2015-01-21T12:32:13Z","pushed_at":"2015-01-24T21:16:33Z","git_url":"git://github.com/sthulb/machine.git","ssh_url":"git@github.com:sthulb/machine.git","clone_url":"https://github.com/sthulb/machine.git","svn_url":"https://github.com/sthulb/machine","homepage":null,"size":2146,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"6522431978adabbedbb2f3f7a2b06c1830455b46","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":27494663,"name":"machine","full_name":"docker/machine","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/machine","description":"Machine management for a container-centric world","fork":false,"url":"https://api.github.com/repos/docker/machine","forks_url":"https://api.github.com/repos/docker/machine/forks","keys_url":"https://api.github.com/repos/docker/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/machine/teams","hooks_url":"https://api.github.com/repos/docker/machine/hooks","issue_events_url":"https://api.github.com/repos/docker/machine/issues/events{/number}","events_url":"https://api.github.com/repos/docker/machine/events","assignees_url":"https://api.github.com/repos/docker/machine/assignees{/user}","branches_url":"https://api.github.com/repos/docker/machine/branches{/branch}","tags_url":"https://api.github.com/repos/docker/machine/tags","blobs_url":"https://api.github.com/repos/docker/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/machine/languages","stargazers_url":"https://api.github.com/repos/docker/machine/stargazers","contributors_url":"https://api.github.com/repos/docker/machine/contributors","subscribers_url":"https://api.github.com/repos/docker/machine/subscribers","subscription_url":"https://api.github.com/repos/docker/machine/subscription","commits_url":"https://api.github.com/repos/docker/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/machine/issues/comments/{number}","contents_url":"https://api.github.com/repos/docker/machine/contents/{+path}","compare_url":"https://api.github.com/repos/docker/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/machine/merges","archive_url":"https://api.github.com/repos/docker/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/machine/downloads","issues_url":"https://api.github.com/repos/docker/machine/issues{/number}","pulls_url":"https://api.github.com/repos/docker/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/machine/labels{/name}","releases_url":"https://api.github.com/repos/docker/machine/releases{/id}","created_at":"2014-12-03T15:52:06Z","updated_at":"2015-01-26T15:42:25Z","pushed_at":"2015-01-26T15:42:24Z","git_url":"git://github.com/docker/machine.git","ssh_url":"git@github.com:docker/machine.git","clone_url":"https://github.com/docker/machine.git","svn_url":"https://github.com/docker/machine","homepage":null,"size":8446,"stargazers_count":1035,"watchers_count":1035,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":80,"forks":123,"open_issues":80,"watchers":1035,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/machine/pulls/400"},"html":{"href":"https://github.com/docker/machine/pull/400"},"issue":{"href":"https://api.github.com/repos/docker/machine/issues/400"},"comments":{"href":"https://api.github.com/repos/docker/machine/issues/400/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/machine/pulls/400/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/machine/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/docker/machine/pulls/400/commits"},"statuses":{"href":"https://api.github.com/repos/docker/machine/statuses/62012ca7267e1e1f212421900c13895c76fa174e"}}}}