{"action":"created","comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/comments/29271318","id":29271318,"diff_hunk":"@@ -1,2 +1,66 @@\n-# production\n-Production tools for cockroachdb.\n+## CockroachDB Deployment: proposal\n+\n+## AWS deployment\n+\n+#### TODOs (definitely not a complete list)\n+\n+* how to handle different cloud services? different command line? different arguments?\n+* persistent vs ephemeral (instance lifetime) storage.\n+* service (so we can run `service start cockroachdb`. Possibly including babysitter.\n+* Yum package or AMI for binary deployment.\n+* Maybe use AWS key service to manage certificate keys.\n+* Support multiple cluster per account/region.\n+\n+#### Requirements\n+\n+* cockroach-prod repo:\n+  ```\n+  $ go get github.com/cockroachdb/cockroach-prod\n+  ```\n+* Existing AWS account with [credentials](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) in `~/.aws/credentials`:\n+\n+  ```bash\n+  [default]\n+  aws_access_key_id = <key id>\n+  aws_secret_access_key = <key>\n+  ```\n+* No EC2 instances or load balancers with \"CockroachDB\" tag\n+\n+\n+#### Cluster creation\n+\n+1. Create and start a single EC2 instance with the following characteristics:\n+\n+  * 64bit linux\n+  * tag `CockroachDB=init`\n+  * TBD: storage (disk/ssd/ebs, etc...), ram, cpu","path":"README.md","position":38,"original_position":38,"commit_id":"b3d5647a6892b8a5a33a8eabf5d4e96f89643b28","original_commit_id":"b3d5647a6892b8a5a33a8eabf5d4e96f89643b28","user":{"login":"MBerhault","id":5901480,"avatar_url":"https://avatars.githubusercontent.com/u/5901480?v=3","gravatar_id":"","url":"https://api.github.com/users/MBerhault","html_url":"https://github.com/MBerhault","followers_url":"https://api.github.com/users/MBerhault/followers","following_url":"https://api.github.com/users/MBerhault/following{/other_user}","gists_url":"https://api.github.com/users/MBerhault/gists{/gist_id}","starred_url":"https://api.github.com/users/MBerhault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MBerhault/subscriptions","organizations_url":"https://api.github.com/users/MBerhault/orgs","repos_url":"https://api.github.com/users/MBerhault/repos","events_url":"https://api.github.com/users/MBerhault/events{/privacy}","received_events_url":"https://api.github.com/users/MBerhault/received_events","type":"User","site_admin":false},"body":"The reason I want to go with \"create your own\" is that the AWS GUI to do this is much better (it guides you through the type of instance, tells you about \"free tier\" available, picks the right default AMI, etc...). Without that, you would have to figure those out by yourself.","created_at":"2015-04-28T18:12:43Z","updated_at":"2015-04-28T18:12:43Z","html_url":"https://github.com/cockroachdb/cockroach-prod/pull/1#discussion_r29271318","pull_request_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/comments/29271318"},"html":{"href":"https://github.com/cockroachdb/cockroach-prod/pull/1#discussion_r29271318"},"pull_request":{"href":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/1","id":34293320,"html_url":"https://github.com/cockroachdb/cockroach-prod/pull/1","diff_url":"https://github.com/cockroachdb/cockroach-prod/pull/1.diff","patch_url":"https://github.com/cockroachdb/cockroach-prod/pull/1.patch","issue_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues/1","number":1,"state":"open","locked":false,"title":"deployment proposal","user":{"login":"MBerhault","id":5901480,"avatar_url":"https://avatars.githubusercontent.com/u/5901480?v=3","gravatar_id":"","url":"https://api.github.com/users/MBerhault","html_url":"https://github.com/MBerhault","followers_url":"https://api.github.com/users/MBerhault/followers","following_url":"https://api.github.com/users/MBerhault/following{/other_user}","gists_url":"https://api.github.com/users/MBerhault/gists{/gist_id}","starred_url":"https://api.github.com/users/MBerhault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MBerhault/subscriptions","organizations_url":"https://api.github.com/users/MBerhault/orgs","repos_url":"https://api.github.com/users/MBerhault/repos","events_url":"https://api.github.com/users/MBerhault/events{/privacy}","received_events_url":"https://api.github.com/users/MBerhault/received_events","type":"User","site_admin":false},"body":"This is AWS only. I'm sure I'm missing something here (at least the stuff listed in TODOs, some of which we may need right away), but this is the general idea.","created_at":"2015-04-28T17:54:38Z","updated_at":"2015-04-28T18:12:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19737688a9617d779a2ccc121d819ed7033c6e96","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/1/commits","review_comments_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/1/comments","review_comment_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues/1/comments","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/statuses/b3d5647a6892b8a5a33a8eabf5d4e96f89643b28","head":{"label":"cockroachdb:marc/deployment_proposal","ref":"marc/deployment_proposal","sha":"b3d5647a6892b8a5a33a8eabf5d4e96f89643b28","user":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"repo":{"id":34730187,"name":"cockroach-prod","full_name":"cockroachdb/cockroach-prod","owner":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cockroachdb/cockroach-prod","description":"Production tools for cockroachdb.","fork":false,"url":"https://api.github.com/repos/cockroachdb/cockroach-prod","forks_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/forks","keys_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/teams","hooks_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/hooks","issue_events_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues/events{/number}","events_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/events","assignees_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/assignees{/user}","branches_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/branches{/branch}","tags_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/tags","blobs_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/refs{/sha}","trees_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/statuses/{sha}","languages_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/languages","stargazers_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/stargazers","contributors_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/contributors","subscribers_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/subscribers","subscription_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/subscription","commits_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/commits{/sha}","git_commits_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/commits{/sha}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/comments{/number}","issue_comment_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues/comments{/number}","contents_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/contents/{+path}","compare_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/merges","archive_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/downloads","issues_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues{/number}","pulls_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls{/number}","milestones_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/milestones{/number}","notifications_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/labels{/name}","releases_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/releases{/id}","created_at":"2015-04-28T12:51:48Z","updated_at":"2015-04-28T17:16:30Z","pushed_at":"2015-04-28T17:54:39Z","git_url":"git://github.com/cockroachdb/cockroach-prod.git","ssh_url":"git@github.com:cockroachdb/cockroach-prod.git","clone_url":"https://github.com/cockroachdb/cockroach-prod.git","svn_url":"https://github.com/cockroachdb/cockroach-prod","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"cockroachdb:master","ref":"master","sha":"39473add60527322b067add944b79dbd112db739","user":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"repo":{"id":34730187,"name":"cockroach-prod","full_name":"cockroachdb/cockroach-prod","owner":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cockroachdb/cockroach-prod","description":"Production tools for cockroachdb.","fork":false,"url":"https://api.github.com/repos/cockroachdb/cockroach-prod","forks_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/forks","keys_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/teams","hooks_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/hooks","issue_events_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues/events{/number}","events_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/events","assignees_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/assignees{/user}","branches_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/branches{/branch}","tags_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/tags","blobs_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/refs{/sha}","trees_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/statuses/{sha}","languages_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/languages","stargazers_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/stargazers","contributors_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/contributors","subscribers_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/subscribers","subscription_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/subscription","commits_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/commits{/sha}","git_commits_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/git/commits{/sha}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/comments{/number}","issue_comment_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues/comments{/number}","contents_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/contents/{+path}","compare_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/merges","archive_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/downloads","issues_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues{/number}","pulls_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls{/number}","milestones_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/milestones{/number}","notifications_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/labels{/name}","releases_url":"https://api.github.com/repos/cockroachdb/cockroach-prod/releases{/id}","created_at":"2015-04-28T12:51:48Z","updated_at":"2015-04-28T17:16:30Z","pushed_at":"2015-04-28T17:54:39Z","git_url":"git://github.com/cockroachdb/cockroach-prod.git","ssh_url":"git@github.com:cockroachdb/cockroach-prod.git","clone_url":"https://github.com/cockroachdb/cockroach-prod.git","svn_url":"https://github.com/cockroachdb/cockroach-prod","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/1"},"html":{"href":"https://github.com/cockroachdb/cockroach-prod/pull/1"},"issue":{"href":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues/1"},"comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach-prod/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cockroachdb/cockroach-prod/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/cockroachdb/cockroach-prod/statuses/b3d5647a6892b8a5a33a8eabf5d4e96f89643b28"}}}}