{"action":"created","comment":{"url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/comments/25470839","id":25470839,"diff_hunk":"@@ -77,6 +77,23 @@ create_EBS_Snapshot_Tags() {\n   fi\n }\n \n+add_EBS_permissions() {","path":"files/default/automated-backup.sh","position":4,"original_position":4,"commit_id":"4a0b0b8b159e7dadc45f614f583105a465884f7a","original_commit_id":"4a0b0b8b159e7dadc45f614f583105a465884f7a","user":{"login":"NickLaMuro","id":314014,"avatar_url":"https://avatars.githubusercontent.com/u/314014?v=3","gravatar_id":"","url":"https://api.github.com/users/NickLaMuro","html_url":"https://github.com/NickLaMuro","followers_url":"https://api.github.com/users/NickLaMuro/followers","following_url":"https://api.github.com/users/NickLaMuro/following{/other_user}","gists_url":"https://api.github.com/users/NickLaMuro/gists{/gist_id}","starred_url":"https://api.github.com/users/NickLaMuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickLaMuro/subscriptions","organizations_url":"https://api.github.com/users/NickLaMuro/orgs","repos_url":"https://api.github.com/users/NickLaMuro/repos","events_url":"https://api.github.com/users/NickLaMuro/events{/privacy}","received_events_url":"https://api.github.com/users/NickLaMuro/received_events","type":"User","site_admin":false},"body":"So nothing is calling this function.  I would assume this is something that should be called in the main function and this function can determine if it needs to make the aws cli call or not.","created_at":"2015-02-26T22:20:28Z","updated_at":"2015-02-26T22:20:28Z","html_url":"https://github.com/sportngin-cookbooks/ebs_backups/pull/3#discussion_r25470839","pull_request_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/comments/25470839"},"html":{"href":"https://github.com/sportngin-cookbooks/ebs_backups/pull/3#discussion_r25470839"},"pull_request":{"href":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/3","id":30116663,"html_url":"https://github.com/sportngin-cookbooks/ebs_backups/pull/3","diff_url":"https://github.com/sportngin-cookbooks/ebs_backups/pull/3.diff","patch_url":"https://github.com/sportngin-cookbooks/ebs_backups/pull/3.patch","issue_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues/3","number":3,"state":"open","locked":false,"title":"Sharing","user":{"login":"bbergstrom","id":921833,"avatar_url":"https://avatars.githubusercontent.com/u/921833?v=3","gravatar_id":"","url":"https://api.github.com/users/bbergstrom","html_url":"https://github.com/bbergstrom","followers_url":"https://api.github.com/users/bbergstrom/followers","following_url":"https://api.github.com/users/bbergstrom/following{/other_user}","gists_url":"https://api.github.com/users/bbergstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/bbergstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbergstrom/subscriptions","organizations_url":"https://api.github.com/users/bbergstrom/orgs","repos_url":"https://api.github.com/users/bbergstrom/repos","events_url":"https://api.github.com/users/bbergstrom/events{/privacy}","received_events_url":"https://api.github.com/users/bbergstrom/received_events","type":"User","site_admin":false},"body":"Adding support for specifying account ids to share the snapshots with.  This is useful for sharing production snapshots with a pre-production account/environment.","created_at":"2015-02-26T21:10:45Z","updated_at":"2015-02-26T22:20:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1c0ee7707b85c4e1393c40da3cc37f409d003dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues/3/comments","statuses_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/statuses/4a0b0b8b159e7dadc45f614f583105a465884f7a","head":{"label":"sportngin-cookbooks:sharing","ref":"sharing","sha":"4a0b0b8b159e7dadc45f614f583105a465884f7a","user":{"login":"sportngin-cookbooks","id":6474428,"avatar_url":"https://avatars.githubusercontent.com/u/6474428?v=3","gravatar_id":"","url":"https://api.github.com/users/sportngin-cookbooks","html_url":"https://github.com/sportngin-cookbooks","followers_url":"https://api.github.com/users/sportngin-cookbooks/followers","following_url":"https://api.github.com/users/sportngin-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/sportngin-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/sportngin-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sportngin-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/sportngin-cookbooks/orgs","repos_url":"https://api.github.com/users/sportngin-cookbooks/repos","events_url":"https://api.github.com/users/sportngin-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/sportngin-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":27025575,"name":"ebs_backups","full_name":"sportngin-cookbooks/ebs_backups","owner":{"login":"sportngin-cookbooks","id":6474428,"avatar_url":"https://avatars.githubusercontent.com/u/6474428?v=3","gravatar_id":"","url":"https://api.github.com/users/sportngin-cookbooks","html_url":"https://github.com/sportngin-cookbooks","followers_url":"https://api.github.com/users/sportngin-cookbooks/followers","following_url":"https://api.github.com/users/sportngin-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/sportngin-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/sportngin-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sportngin-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/sportngin-cookbooks/orgs","repos_url":"https://api.github.com/users/sportngin-cookbooks/repos","events_url":"https://api.github.com/users/sportngin-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/sportngin-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sportngin-cookbooks/ebs_backups","description":"Takes and manages snapshots of EBS Volumes","fork":false,"url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups","forks_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/forks","keys_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/teams","hooks_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/hooks","issue_events_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues/events{/number}","events_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/events","assignees_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/assignees{/user}","branches_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/branches{/branch}","tags_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/tags","blobs_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/refs{/sha}","trees_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/statuses/{sha}","languages_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/languages","stargazers_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/stargazers","contributors_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/contributors","subscribers_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/subscribers","subscription_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/subscription","commits_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/commits{/sha}","git_commits_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/commits{/sha}","comments_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/comments{/number}","issue_comment_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues/comments{/number}","contents_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/contents/{+path}","compare_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/merges","archive_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/downloads","issues_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues{/number}","pulls_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls{/number}","milestones_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/milestones{/number}","notifications_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/labels{/name}","releases_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/releases{/id}","created_at":"2014-11-23T07:43:36Z","updated_at":"2015-02-16T20:34:10Z","pushed_at":"2015-02-26T22:06:47Z","git_url":"git://github.com/sportngin-cookbooks/ebs_backups.git","ssh_url":"git@github.com:sportngin-cookbooks/ebs_backups.git","clone_url":"https://github.com/sportngin-cookbooks/ebs_backups.git","svn_url":"https://github.com/sportngin-cookbooks/ebs_backups","homepage":null,"size":276,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"sportngin-cookbooks:master","ref":"master","sha":"cf4d3b1b9e8cfcd2456a77ce8a5edba4ba73964f","user":{"login":"sportngin-cookbooks","id":6474428,"avatar_url":"https://avatars.githubusercontent.com/u/6474428?v=3","gravatar_id":"","url":"https://api.github.com/users/sportngin-cookbooks","html_url":"https://github.com/sportngin-cookbooks","followers_url":"https://api.github.com/users/sportngin-cookbooks/followers","following_url":"https://api.github.com/users/sportngin-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/sportngin-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/sportngin-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sportngin-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/sportngin-cookbooks/orgs","repos_url":"https://api.github.com/users/sportngin-cookbooks/repos","events_url":"https://api.github.com/users/sportngin-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/sportngin-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":27025575,"name":"ebs_backups","full_name":"sportngin-cookbooks/ebs_backups","owner":{"login":"sportngin-cookbooks","id":6474428,"avatar_url":"https://avatars.githubusercontent.com/u/6474428?v=3","gravatar_id":"","url":"https://api.github.com/users/sportngin-cookbooks","html_url":"https://github.com/sportngin-cookbooks","followers_url":"https://api.github.com/users/sportngin-cookbooks/followers","following_url":"https://api.github.com/users/sportngin-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/sportngin-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/sportngin-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sportngin-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/sportngin-cookbooks/orgs","repos_url":"https://api.github.com/users/sportngin-cookbooks/repos","events_url":"https://api.github.com/users/sportngin-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/sportngin-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sportngin-cookbooks/ebs_backups","description":"Takes and manages snapshots of EBS Volumes","fork":false,"url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups","forks_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/forks","keys_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/teams","hooks_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/hooks","issue_events_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues/events{/number}","events_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/events","assignees_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/assignees{/user}","branches_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/branches{/branch}","tags_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/tags","blobs_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/refs{/sha}","trees_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/statuses/{sha}","languages_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/languages","stargazers_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/stargazers","contributors_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/contributors","subscribers_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/subscribers","subscription_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/subscription","commits_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/commits{/sha}","git_commits_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/git/commits{/sha}","comments_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/comments{/number}","issue_comment_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues/comments{/number}","contents_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/contents/{+path}","compare_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/merges","archive_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/downloads","issues_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues{/number}","pulls_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls{/number}","milestones_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/milestones{/number}","notifications_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/labels{/name}","releases_url":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/releases{/id}","created_at":"2014-11-23T07:43:36Z","updated_at":"2015-02-16T20:34:10Z","pushed_at":"2015-02-26T22:06:47Z","git_url":"git://github.com/sportngin-cookbooks/ebs_backups.git","ssh_url":"git@github.com:sportngin-cookbooks/ebs_backups.git","clone_url":"https://github.com/sportngin-cookbooks/ebs_backups.git","svn_url":"https://github.com/sportngin-cookbooks/ebs_backups","homepage":null,"size":276,"stargazers_count":0,"watchers_count":0,"language":"Shell","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/sportngin-cookbooks/ebs_backups/pulls/3"},"html":{"href":"https://github.com/sportngin-cookbooks/ebs_backups/pull/3"},"issue":{"href":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues/3"},"comments":{"href":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sportngin-cookbooks/ebs_backups/statuses/4a0b0b8b159e7dadc45f614f583105a465884f7a"}}}}