{"action":"closed","number":11,"pull_request":{"url":"https://api.github.com/repos/WGBH/aws-wrapper/pulls/11","id":52276587,"html_url":"https://github.com/WGBH/aws-wrapper/pull/11","diff_url":"https://github.com/WGBH/aws-wrapper/pull/11.diff","patch_url":"https://github.com/WGBH/aws-wrapper/pull/11.patch","issue_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/11","number":11,"state":"closed","locked":false,"title":"Ebs hook","user":{"login":"mccalluc","id":730388,"avatar_url":"https://avatars.githubusercontent.com/u/730388?v=3","gravatar_id":"","url":"https://api.github.com/users/mccalluc","html_url":"https://github.com/mccalluc","followers_url":"https://api.github.com/users/mccalluc/followers","following_url":"https://api.github.com/users/mccalluc/following{/other_user}","gists_url":"https://api.github.com/users/mccalluc/gists{/gist_id}","starred_url":"https://api.github.com/users/mccalluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mccalluc/subscriptions","organizations_url":"https://api.github.com/users/mccalluc/orgs","repos_url":"https://api.github.com/users/mccalluc/repos","events_url":"https://api.github.com/users/mccalluc/events{/privacy}","received_events_url":"https://api.github.com/users/mccalluc/received_events","type":"User","site_admin":false},"body":"@afred? I should have made this PR two weeks ago. I think it's good, though it doesn't get to the permissions stuff.\r\n\r\nCould you also check that \r\n- the README makes sense to you\r\n- the script self-documentation makes sense when run without arguments\r\n- the scripts run\r\n- the log output makes sense\r\n\r\nIt should look something like:\r\n```\r\n[aws-wrapper]$ ruby scripts/ec2_elb_start.rb --name qrs.wgbh-mla-test.org\r\nINFO [2015-12-01 10:52:46]: Created key pair and stored private key at /Users/chuck_mccallum/.ssh/qrs.wgbh-mla-test.org.pem. Fingerprint: d9:e3:7f:33:3a:de:44:6e:aa:f6:71:78:a8:ef:4c:5e:40:12:49:01\r\nINFO [2015-12-01 10:52:46]: Created PK for qrs.wgbh-mla-test.org\r\nINFO [2015-12-01 10:52:47]: try 1: EC2 instances not ready yet. [\"i-d2143b6c: pending\", \"i-d1143b6f: pending\"]\r\n...\r\nINFO [2015-12-01 10:53:08]: try 5: EC2 instances not ready yet. [\"i-d2143b6c: pending\", \"i-d1143b6f: pending\"]\r\nINFO [2015-12-01 10:53:14]: Started 2 EC2 instances [\"i-d2143b6c\", \"i-d1143b6f\"]\r\nINFO [2015-12-01 10:53:14]: try 1: Volume vol-476fdfa8 not yet available\r\nINFO [2015-12-01 10:53:20]: try 1: Volume vol-cf50e020 not yet available\r\nINFO [2015-12-01 10:53:26]: Attached EBS volume to each instance\r\nINFO [2015-12-01 10:53:27]: Created load balancers and registered instances\r\nINFO [2015-12-01 10:53:28]: try 1: DNS update /change/C1Z4GIBGZKZFX6 not yet propagated to all AWS NS\r\n...\r\nINFO [2015-12-01 10:53:54]: try 6: DNS update /change/C1Z4GIBGZKZFX6 not yet propagated to all AWS NS\r\nINFO [2015-12-01 10:53:59]: Created CNAMEs\r\n[aws-wrapper]$ ruby scripts/elb_swap.rb --name qrs.wgbh-mla-test.org\r\nINFO [2015-12-01 10:54:52]: live: qrs-wgbh-mla-test-org-a / i-d2143b6c\r\nINFO [2015-12-01 10:54:52]: demo: qrs-wgbh-mla-test-org-b / i-d1143b6f\r\nINFO [2015-12-01 10:54:52]: Half swapped: Registered both instances to both ELBs\r\nINFO [2015-12-01 10:54:53]: Swap complete: De-registered both instances from original ELBs\r\n```","created_at":"2015-12-01T16:01:57Z","updated_at":"2015-12-03T18:50:23Z","closed_at":"2015-12-03T18:50:23Z","merged_at":"2015-12-03T18:50:23Z","merge_commit_sha":"faeb6cb5ae0ad1b8b97d8e2817956e1413849146","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WGBH/aws-wrapper/pulls/11/commits","review_comments_url":"https://api.github.com/repos/WGBH/aws-wrapper/pulls/11/comments","review_comment_url":"https://api.github.com/repos/WGBH/aws-wrapper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/11/comments","statuses_url":"https://api.github.com/repos/WGBH/aws-wrapper/statuses/3f0af7dadc2480d02544059ac49ec5a1e828a626","head":{"label":"WGBH:ebs-hook","ref":"ebs-hook","sha":"3f0af7dadc2480d02544059ac49ec5a1e828a626","user":{"login":"WGBH","id":301102,"avatar_url":"https://avatars.githubusercontent.com/u/301102?v=3","gravatar_id":"","url":"https://api.github.com/users/WGBH","html_url":"https://github.com/WGBH","followers_url":"https://api.github.com/users/WGBH/followers","following_url":"https://api.github.com/users/WGBH/following{/other_user}","gists_url":"https://api.github.com/users/WGBH/gists{/gist_id}","starred_url":"https://api.github.com/users/WGBH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGBH/subscriptions","organizations_url":"https://api.github.com/users/WGBH/orgs","repos_url":"https://api.github.com/users/WGBH/repos","events_url":"https://api.github.com/users/WGBH/events{/privacy}","received_events_url":"https://api.github.com/users/WGBH/received_events","type":"Organization","site_admin":false},"repo":{"id":43001765,"name":"aws-wrapper","full_name":"WGBH/aws-wrapper","owner":{"login":"WGBH","id":301102,"avatar_url":"https://avatars.githubusercontent.com/u/301102?v=3","gravatar_id":"","url":"https://api.github.com/users/WGBH","html_url":"https://github.com/WGBH","followers_url":"https://api.github.com/users/WGBH/followers","following_url":"https://api.github.com/users/WGBH/following{/other_user}","gists_url":"https://api.github.com/users/WGBH/gists{/gist_id}","starred_url":"https://api.github.com/users/WGBH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGBH/subscriptions","organizations_url":"https://api.github.com/users/WGBH/orgs","repos_url":"https://api.github.com/users/WGBH/repos","events_url":"https://api.github.com/users/WGBH/events{/privacy}","received_events_url":"https://api.github.com/users/WGBH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WGBH/aws-wrapper","description":"Scripts for our most common interactions with AWS","fork":false,"url":"https://api.github.com/repos/WGBH/aws-wrapper","forks_url":"https://api.github.com/repos/WGBH/aws-wrapper/forks","keys_url":"https://api.github.com/repos/WGBH/aws-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WGBH/aws-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WGBH/aws-wrapper/teams","hooks_url":"https://api.github.com/repos/WGBH/aws-wrapper/hooks","issue_events_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/WGBH/aws-wrapper/events","assignees_url":"https://api.github.com/repos/WGBH/aws-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/WGBH/aws-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/WGBH/aws-wrapper/tags","blobs_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WGBH/aws-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/WGBH/aws-wrapper/languages","stargazers_url":"https://api.github.com/repos/WGBH/aws-wrapper/stargazers","contributors_url":"https://api.github.com/repos/WGBH/aws-wrapper/contributors","subscribers_url":"https://api.github.com/repos/WGBH/aws-wrapper/subscribers","subscription_url":"https://api.github.com/repos/WGBH/aws-wrapper/subscription","commits_url":"https://api.github.com/repos/WGBH/aws-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/WGBH/aws-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/WGBH/aws-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/WGBH/aws-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WGBH/aws-wrapper/merges","archive_url":"https://api.github.com/repos/WGBH/aws-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WGBH/aws-wrapper/downloads","issues_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/WGBH/aws-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/WGBH/aws-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/WGBH/aws-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WGBH/aws-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/WGBH/aws-wrapper/releases{/id}","created_at":"2015-09-23T13:13:51Z","updated_at":"2015-09-23T18:27:51Z","pushed_at":"2015-12-03T18:50:23Z","git_url":"git://github.com/WGBH/aws-wrapper.git","ssh_url":"git@github.com:WGBH/aws-wrapper.git","clone_url":"https://github.com/WGBH/aws-wrapper.git","svn_url":"https://github.com/WGBH/aws-wrapper","homepage":"","size":57,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"WGBH:master","ref":"master","sha":"e213c8d3e07311e608aae9fa6b4b283f1a46bed3","user":{"login":"WGBH","id":301102,"avatar_url":"https://avatars.githubusercontent.com/u/301102?v=3","gravatar_id":"","url":"https://api.github.com/users/WGBH","html_url":"https://github.com/WGBH","followers_url":"https://api.github.com/users/WGBH/followers","following_url":"https://api.github.com/users/WGBH/following{/other_user}","gists_url":"https://api.github.com/users/WGBH/gists{/gist_id}","starred_url":"https://api.github.com/users/WGBH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGBH/subscriptions","organizations_url":"https://api.github.com/users/WGBH/orgs","repos_url":"https://api.github.com/users/WGBH/repos","events_url":"https://api.github.com/users/WGBH/events{/privacy}","received_events_url":"https://api.github.com/users/WGBH/received_events","type":"Organization","site_admin":false},"repo":{"id":43001765,"name":"aws-wrapper","full_name":"WGBH/aws-wrapper","owner":{"login":"WGBH","id":301102,"avatar_url":"https://avatars.githubusercontent.com/u/301102?v=3","gravatar_id":"","url":"https://api.github.com/users/WGBH","html_url":"https://github.com/WGBH","followers_url":"https://api.github.com/users/WGBH/followers","following_url":"https://api.github.com/users/WGBH/following{/other_user}","gists_url":"https://api.github.com/users/WGBH/gists{/gist_id}","starred_url":"https://api.github.com/users/WGBH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGBH/subscriptions","organizations_url":"https://api.github.com/users/WGBH/orgs","repos_url":"https://api.github.com/users/WGBH/repos","events_url":"https://api.github.com/users/WGBH/events{/privacy}","received_events_url":"https://api.github.com/users/WGBH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WGBH/aws-wrapper","description":"Scripts for our most common interactions with AWS","fork":false,"url":"https://api.github.com/repos/WGBH/aws-wrapper","forks_url":"https://api.github.com/repos/WGBH/aws-wrapper/forks","keys_url":"https://api.github.com/repos/WGBH/aws-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WGBH/aws-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WGBH/aws-wrapper/teams","hooks_url":"https://api.github.com/repos/WGBH/aws-wrapper/hooks","issue_events_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/WGBH/aws-wrapper/events","assignees_url":"https://api.github.com/repos/WGBH/aws-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/WGBH/aws-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/WGBH/aws-wrapper/tags","blobs_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WGBH/aws-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/WGBH/aws-wrapper/languages","stargazers_url":"https://api.github.com/repos/WGBH/aws-wrapper/stargazers","contributors_url":"https://api.github.com/repos/WGBH/aws-wrapper/contributors","subscribers_url":"https://api.github.com/repos/WGBH/aws-wrapper/subscribers","subscription_url":"https://api.github.com/repos/WGBH/aws-wrapper/subscription","commits_url":"https://api.github.com/repos/WGBH/aws-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/WGBH/aws-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/WGBH/aws-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/WGBH/aws-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/WGBH/aws-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WGBH/aws-wrapper/merges","archive_url":"https://api.github.com/repos/WGBH/aws-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WGBH/aws-wrapper/downloads","issues_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/WGBH/aws-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/WGBH/aws-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/WGBH/aws-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WGBH/aws-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/WGBH/aws-wrapper/releases{/id}","created_at":"2015-09-23T13:13:51Z","updated_at":"2015-09-23T18:27:51Z","pushed_at":"2015-12-03T18:50:23Z","git_url":"git://github.com/WGBH/aws-wrapper.git","ssh_url":"git@github.com:WGBH/aws-wrapper.git","clone_url":"https://github.com/WGBH/aws-wrapper.git","svn_url":"https://github.com/WGBH/aws-wrapper","homepage":"","size":57,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WGBH/aws-wrapper/pulls/11"},"html":{"href":"https://github.com/WGBH/aws-wrapper/pull/11"},"issue":{"href":"https://api.github.com/repos/WGBH/aws-wrapper/issues/11"},"comments":{"href":"https://api.github.com/repos/WGBH/aws-wrapper/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/WGBH/aws-wrapper/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/WGBH/aws-wrapper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WGBH/aws-wrapper/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/WGBH/aws-wrapper/statuses/3f0af7dadc2480d02544059ac49ec5a1e828a626"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"afred","id":1507490,"avatar_url":"https://avatars.githubusercontent.com/u/1507490?v=3","gravatar_id":"","url":"https://api.github.com/users/afred","html_url":"https://github.com/afred","followers_url":"https://api.github.com/users/afred/followers","following_url":"https://api.github.com/users/afred/following{/other_user}","gists_url":"https://api.github.com/users/afred/gists{/gist_id}","starred_url":"https://api.github.com/users/afred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afred/subscriptions","organizations_url":"https://api.github.com/users/afred/orgs","repos_url":"https://api.github.com/users/afred/repos","events_url":"https://api.github.com/users/afred/events{/privacy}","received_events_url":"https://api.github.com/users/afred/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":14,"additions":285,"deletions":107,"changed_files":20}}