{"action":"created","comment":{"url":"https://api.github.com/repos/brkt/brkt-cli/pulls/comments/46370831","id":46370831,"diff_hunk":"@@ -248,6 +259,9 @@ def _wait_for_encryption(enc_svc,\n             if failure_code == encryptor_service.FAILURE_CODE_UNSUPPORTED_GUEST:\n                 raise UnsupportedGuestError(\n                     'The specified AMI uses an unsupported operating system')\n+            if failure_code == encryptor_service.FAILURE_CODE_AWS_PERMISSIONS:","path":"brkt_cli/encrypt_ami.py","position":80,"original_position":80,"commit_id":"2dc31244cb98a01c0f61973d814cd529b8fc4a2c","original_commit_id":"2dc31244cb98a01c0f61973d814cd529b8fc4a2c","user":{"login":"gdmen","id":1057459,"avatar_url":"https://avatars.githubusercontent.com/u/1057459?v=3","gravatar_id":"","url":"https://api.github.com/users/gdmen","html_url":"https://github.com/gdmen","followers_url":"https://api.github.com/users/gdmen/followers","following_url":"https://api.github.com/users/gdmen/following{/other_user}","gists_url":"https://api.github.com/users/gdmen/gists{/gist_id}","starred_url":"https://api.github.com/users/gdmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdmen/subscriptions","organizations_url":"https://api.github.com/users/gdmen/orgs","repos_url":"https://api.github.com/users/gdmen/repos","events_url":"https://api.github.com/users/gdmen/events{/privacy}","received_events_url":"https://api.github.com/users/gdmen/received_events","type":"User","site_admin":false},"body":"Changed it to 'The specified IAM profile has insufficient permissions'","created_at":"2015-12-02T02:28:06Z","updated_at":"2015-12-02T02:28:06Z","html_url":"https://github.com/brkt/brkt-cli/pull/75#discussion_r46370831","pull_request_url":"https://api.github.com/repos/brkt/brkt-cli/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/brkt/brkt-cli/pulls/comments/46370831"},"html":{"href":"https://github.com/brkt/brkt-cli/pull/75#discussion_r46370831"},"pull_request":{"href":"https://api.github.com/repos/brkt/brkt-cli/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/brkt/brkt-cli/pulls/75","id":52023988,"html_url":"https://github.com/brkt/brkt-cli/pull/75","diff_url":"https://github.com/brkt/brkt-cli/pull/75.diff","patch_url":"https://github.com/brkt/brkt-cli/pull/75.patch","issue_url":"https://api.github.com/repos/brkt/brkt-cli/issues/75","number":75,"state":"open","locked":false,"title":"Add encrypt_ami_s3 with options for S3 source.","user":{"login":"gdmen","id":1057459,"avatar_url":"https://avatars.githubusercontent.com/u/1057459?v=3","gravatar_id":"","url":"https://api.github.com/users/gdmen","html_url":"https://github.com/gdmen","followers_url":"https://api.github.com/users/gdmen/followers","following_url":"https://api.github.com/users/gdmen/following{/other_user}","gists_url":"https://api.github.com/users/gdmen/gists{/gist_id}","starred_url":"https://api.github.com/users/gdmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdmen/subscriptions","organizations_url":"https://api.github.com/users/gdmen/orgs","repos_url":"https://api.github.com/users/gdmen/repos","events_url":"https://api.github.com/users/gdmen/events{/privacy}","received_events_url":"https://api.github.com/users/gdmen/received_events","type":"User","site_admin":false},"body":"This is currently lib funcionality only and not hooked up to the brkt\r\ncommand.\r\n\r\nNew options in encrypt_ami_s3:\r\ns3_bucket, s3_key, iam_profile\r\n\r\n- aws_service instance launch now takes user-data and instance profile\r\nname args.\r\n- remove requests dependency (replaced with urllib2)\r\n- rename some encrypt_ami functions to public (no underscore)","created_at":"2015-11-27T20:59:30Z","updated_at":"2015-12-02T02:28:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22cd2ccb06df06458f300ac6c6f1bbbd9867a6ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brkt/brkt-cli/pulls/75/commits","review_comments_url":"https://api.github.com/repos/brkt/brkt-cli/pulls/75/comments","review_comment_url":"https://api.github.com/repos/brkt/brkt-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brkt/brkt-cli/issues/75/comments","statuses_url":"https://api.github.com/repos/brkt/brkt-cli/statuses/2dc31244cb98a01c0f61973d814cd529b8fc4a2c","head":{"label":"brkt:gdm-s3","ref":"gdm-s3","sha":"2dc31244cb98a01c0f61973d814cd529b8fc4a2c","user":{"login":"brkt","id":2963083,"avatar_url":"https://avatars.githubusercontent.com/u/2963083?v=3","gravatar_id":"","url":"https://api.github.com/users/brkt","html_url":"https://github.com/brkt","followers_url":"https://api.github.com/users/brkt/followers","following_url":"https://api.github.com/users/brkt/following{/other_user}","gists_url":"https://api.github.com/users/brkt/gists{/gist_id}","starred_url":"https://api.github.com/users/brkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brkt/subscriptions","organizations_url":"https://api.github.com/users/brkt/orgs","repos_url":"https://api.github.com/users/brkt/repos","events_url":"https://api.github.com/users/brkt/events{/privacy}","received_events_url":"https://api.github.com/users/brkt/received_events","type":"Organization","site_admin":false},"repo":{"id":42469221,"name":"brkt-cli","full_name":"brkt/brkt-cli","owner":{"login":"brkt","id":2963083,"avatar_url":"https://avatars.githubusercontent.com/u/2963083?v=3","gravatar_id":"","url":"https://api.github.com/users/brkt","html_url":"https://github.com/brkt","followers_url":"https://api.github.com/users/brkt/followers","following_url":"https://api.github.com/users/brkt/following{/other_user}","gists_url":"https://api.github.com/users/brkt/gists{/gist_id}","starred_url":"https://api.github.com/users/brkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brkt/subscriptions","organizations_url":"https://api.github.com/users/brkt/orgs","repos_url":"https://api.github.com/users/brkt/repos","events_url":"https://api.github.com/users/brkt/events{/privacy}","received_events_url":"https://api.github.com/users/brkt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brkt/brkt-cli","description":"","fork":false,"url":"https://api.github.com/repos/brkt/brkt-cli","forks_url":"https://api.github.com/repos/brkt/brkt-cli/forks","keys_url":"https://api.github.com/repos/brkt/brkt-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brkt/brkt-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brkt/brkt-cli/teams","hooks_url":"https://api.github.com/repos/brkt/brkt-cli/hooks","issue_events_url":"https://api.github.com/repos/brkt/brkt-cli/issues/events{/number}","events_url":"https://api.github.com/repos/brkt/brkt-cli/events","assignees_url":"https://api.github.com/repos/brkt/brkt-cli/assignees{/user}","branches_url":"https://api.github.com/repos/brkt/brkt-cli/branches{/branch}","tags_url":"https://api.github.com/repos/brkt/brkt-cli/tags","blobs_url":"https://api.github.com/repos/brkt/brkt-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brkt/brkt-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brkt/brkt-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/brkt/brkt-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brkt/brkt-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/brkt/brkt-cli/languages","stargazers_url":"https://api.github.com/repos/brkt/brkt-cli/stargazers","contributors_url":"https://api.github.com/repos/brkt/brkt-cli/contributors","subscribers_url":"https://api.github.com/repos/brkt/brkt-cli/subscribers","subscription_url":"https://api.github.com/repos/brkt/brkt-cli/subscription","commits_url":"https://api.github.com/repos/brkt/brkt-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/brkt/brkt-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/brkt/brkt-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/brkt/brkt-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/brkt/brkt-cli/contents/{+path}","compare_url":"https://api.github.com/repos/brkt/brkt-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brkt/brkt-cli/merges","archive_url":"https://api.github.com/repos/brkt/brkt-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brkt/brkt-cli/downloads","issues_url":"https://api.github.com/repos/brkt/brkt-cli/issues{/number}","pulls_url":"https://api.github.com/repos/brkt/brkt-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/brkt/brkt-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/brkt/brkt-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brkt/brkt-cli/labels{/name}","releases_url":"https://api.github.com/repos/brkt/brkt-cli/releases{/id}","created_at":"2015-09-14T18:39:20Z","updated_at":"2015-09-25T17:33:27Z","pushed_at":"2015-12-02T01:17:01Z","git_url":"git://github.com/brkt/brkt-cli.git","ssh_url":"git@github.com:brkt/brkt-cli.git","clone_url":"https://github.com/brkt/brkt-cli.git","svn_url":"https://github.com/brkt/brkt-cli","homepage":null,"size":224,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"brkt:master","ref":"master","sha":"b2a9c6eab7c0cfd5d3f724b450d2264776cfff83","user":{"login":"brkt","id":2963083,"avatar_url":"https://avatars.githubusercontent.com/u/2963083?v=3","gravatar_id":"","url":"https://api.github.com/users/brkt","html_url":"https://github.com/brkt","followers_url":"https://api.github.com/users/brkt/followers","following_url":"https://api.github.com/users/brkt/following{/other_user}","gists_url":"https://api.github.com/users/brkt/gists{/gist_id}","starred_url":"https://api.github.com/users/brkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brkt/subscriptions","organizations_url":"https://api.github.com/users/brkt/orgs","repos_url":"https://api.github.com/users/brkt/repos","events_url":"https://api.github.com/users/brkt/events{/privacy}","received_events_url":"https://api.github.com/users/brkt/received_events","type":"Organization","site_admin":false},"repo":{"id":42469221,"name":"brkt-cli","full_name":"brkt/brkt-cli","owner":{"login":"brkt","id":2963083,"avatar_url":"https://avatars.githubusercontent.com/u/2963083?v=3","gravatar_id":"","url":"https://api.github.com/users/brkt","html_url":"https://github.com/brkt","followers_url":"https://api.github.com/users/brkt/followers","following_url":"https://api.github.com/users/brkt/following{/other_user}","gists_url":"https://api.github.com/users/brkt/gists{/gist_id}","starred_url":"https://api.github.com/users/brkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brkt/subscriptions","organizations_url":"https://api.github.com/users/brkt/orgs","repos_url":"https://api.github.com/users/brkt/repos","events_url":"https://api.github.com/users/brkt/events{/privacy}","received_events_url":"https://api.github.com/users/brkt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brkt/brkt-cli","description":"","fork":false,"url":"https://api.github.com/repos/brkt/brkt-cli","forks_url":"https://api.github.com/repos/brkt/brkt-cli/forks","keys_url":"https://api.github.com/repos/brkt/brkt-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brkt/brkt-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brkt/brkt-cli/teams","hooks_url":"https://api.github.com/repos/brkt/brkt-cli/hooks","issue_events_url":"https://api.github.com/repos/brkt/brkt-cli/issues/events{/number}","events_url":"https://api.github.com/repos/brkt/brkt-cli/events","assignees_url":"https://api.github.com/repos/brkt/brkt-cli/assignees{/user}","branches_url":"https://api.github.com/repos/brkt/brkt-cli/branches{/branch}","tags_url":"https://api.github.com/repos/brkt/brkt-cli/tags","blobs_url":"https://api.github.com/repos/brkt/brkt-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brkt/brkt-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brkt/brkt-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/brkt/brkt-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brkt/brkt-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/brkt/brkt-cli/languages","stargazers_url":"https://api.github.com/repos/brkt/brkt-cli/stargazers","contributors_url":"https://api.github.com/repos/brkt/brkt-cli/contributors","subscribers_url":"https://api.github.com/repos/brkt/brkt-cli/subscribers","subscription_url":"https://api.github.com/repos/brkt/brkt-cli/subscription","commits_url":"https://api.github.com/repos/brkt/brkt-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/brkt/brkt-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/brkt/brkt-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/brkt/brkt-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/brkt/brkt-cli/contents/{+path}","compare_url":"https://api.github.com/repos/brkt/brkt-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brkt/brkt-cli/merges","archive_url":"https://api.github.com/repos/brkt/brkt-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brkt/brkt-cli/downloads","issues_url":"https://api.github.com/repos/brkt/brkt-cli/issues{/number}","pulls_url":"https://api.github.com/repos/brkt/brkt-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/brkt/brkt-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/brkt/brkt-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brkt/brkt-cli/labels{/name}","releases_url":"https://api.github.com/repos/brkt/brkt-cli/releases{/id}","created_at":"2015-09-14T18:39:20Z","updated_at":"2015-09-25T17:33:27Z","pushed_at":"2015-12-02T01:17:01Z","git_url":"git://github.com/brkt/brkt-cli.git","ssh_url":"git@github.com:brkt/brkt-cli.git","clone_url":"https://github.com/brkt/brkt-cli.git","svn_url":"https://github.com/brkt/brkt-cli","homepage":null,"size":224,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brkt/brkt-cli/pulls/75"},"html":{"href":"https://github.com/brkt/brkt-cli/pull/75"},"issue":{"href":"https://api.github.com/repos/brkt/brkt-cli/issues/75"},"comments":{"href":"https://api.github.com/repos/brkt/brkt-cli/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/brkt/brkt-cli/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/brkt/brkt-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brkt/brkt-cli/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/brkt/brkt-cli/statuses/2dc31244cb98a01c0f61973d814cd529b8fc4a2c"}}}}