{"action":"opened","number":65,"pull_request":{"url":"https://api.github.com/repos/rapid7/convection/pulls/65","id":50399370,"html_url":"https://github.com/rapid7/convection/pull/65","diff_url":"https://github.com/rapid7/convection/pull/65.diff","patch_url":"https://github.com/rapid7/convection/pull/65.patch","issue_url":"https://api.github.com/repos/rapid7/convection/issues/65","number":65,"state":"open","locked":false,"title":"Adds IAM Managed Policy","user":{"login":"athompson-r7","id":10726978,"avatar_url":"https://avatars.githubusercontent.com/u/10726978?v=3","gravatar_id":"","url":"https://api.github.com/users/athompson-r7","html_url":"https://github.com/athompson-r7","followers_url":"https://api.github.com/users/athompson-r7/followers","following_url":"https://api.github.com/users/athompson-r7/following{/other_user}","gists_url":"https://api.github.com/users/athompson-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/athompson-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athompson-r7/subscriptions","organizations_url":"https://api.github.com/users/athompson-r7/orgs","repos_url":"https://api.github.com/users/athompson-r7/repos","events_url":"https://api.github.com/users/athompson-r7/events{/privacy}","received_events_url":"https://api.github.com/users/athompson-r7/received_events","type":"User","site_admin":false},"body":"This takes advantage of the existing Policy mixin.\r\n\r\nA Managed policy is very similar to a role policy in that there is\r\ndeny/allow statements.  The difference is that a Managed policy has one\r\nand only one policy.\r\n\r\nFor example this is what a policy might look like:\r\n\r\n    iam_managed_policy 'MyPolicy' do\r\n      path '/my/path'\r\n      allow do\r\n        resource ARN\r\n        action 's3:GetObject'\r\n      end\r\n      group 's3-users'\r\n    end","created_at":"2015-11-11T15:55:49Z","updated_at":"2015-11-11T15:55:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/convection/pulls/65/commits","review_comments_url":"https://api.github.com/repos/rapid7/convection/pulls/65/comments","review_comment_url":"https://api.github.com/repos/rapid7/convection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapid7/convection/issues/65/comments","statuses_url":"https://api.github.com/repos/rapid7/convection/statuses/30041fa2efbbcb10a132b06ab1ce4cf92dc41c1e","head":{"label":"rapid7:iam-managed-policy-resource","ref":"iam-managed-policy-resource","sha":"30041fa2efbbcb10a132b06ab1ce4cf92dc41c1e","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":29038297,"name":"convection","full_name":"rapid7/convection","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/convection","description":"A fully generic, modular DSL for AWS CloudFormation","fork":false,"url":"https://api.github.com/repos/rapid7/convection","forks_url":"https://api.github.com/repos/rapid7/convection/forks","keys_url":"https://api.github.com/repos/rapid7/convection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/convection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/convection/teams","hooks_url":"https://api.github.com/repos/rapid7/convection/hooks","issue_events_url":"https://api.github.com/repos/rapid7/convection/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/convection/events","assignees_url":"https://api.github.com/repos/rapid7/convection/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/convection/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/convection/tags","blobs_url":"https://api.github.com/repos/rapid7/convection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/convection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/convection/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/convection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/convection/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/convection/languages","stargazers_url":"https://api.github.com/repos/rapid7/convection/stargazers","contributors_url":"https://api.github.com/repos/rapid7/convection/contributors","subscribers_url":"https://api.github.com/repos/rapid7/convection/subscribers","subscription_url":"https://api.github.com/repos/rapid7/convection/subscription","commits_url":"https://api.github.com/repos/rapid7/convection/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/convection/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/convection/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/convection/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/convection/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/convection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/convection/merges","archive_url":"https://api.github.com/repos/rapid7/convection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/convection/downloads","issues_url":"https://api.github.com/repos/rapid7/convection/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/convection/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/convection/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/convection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/convection/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/convection/releases{/id}","created_at":"2015-01-09T22:31:11Z","updated_at":"2015-11-10T15:59:21Z","pushed_at":"2015-11-11T15:55:15Z","git_url":"git://github.com/rapid7/convection.git","ssh_url":"git@github.com:rapid7/convection.git","clone_url":"https://github.com/rapid7/convection.git","svn_url":"https://github.com/rapid7/convection","homepage":null,"size":1241,"stargazers_count":22,"watchers_count":22,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":22,"default_branch":"master"}},"base":{"label":"rapid7:v0.2","ref":"v0.2","sha":"fd397b573896bee461a1ce69b00bc1cca089a62f","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":29038297,"name":"convection","full_name":"rapid7/convection","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/convection","description":"A fully generic, modular DSL for AWS CloudFormation","fork":false,"url":"https://api.github.com/repos/rapid7/convection","forks_url":"https://api.github.com/repos/rapid7/convection/forks","keys_url":"https://api.github.com/repos/rapid7/convection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/convection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/convection/teams","hooks_url":"https://api.github.com/repos/rapid7/convection/hooks","issue_events_url":"https://api.github.com/repos/rapid7/convection/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/convection/events","assignees_url":"https://api.github.com/repos/rapid7/convection/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/convection/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/convection/tags","blobs_url":"https://api.github.com/repos/rapid7/convection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/convection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/convection/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/convection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/convection/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/convection/languages","stargazers_url":"https://api.github.com/repos/rapid7/convection/stargazers","contributors_url":"https://api.github.com/repos/rapid7/convection/contributors","subscribers_url":"https://api.github.com/repos/rapid7/convection/subscribers","subscription_url":"https://api.github.com/repos/rapid7/convection/subscription","commits_url":"https://api.github.com/repos/rapid7/convection/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/convection/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/convection/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/convection/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/convection/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/convection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/convection/merges","archive_url":"https://api.github.com/repos/rapid7/convection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/convection/downloads","issues_url":"https://api.github.com/repos/rapid7/convection/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/convection/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/convection/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/convection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/convection/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/convection/releases{/id}","created_at":"2015-01-09T22:31:11Z","updated_at":"2015-11-10T15:59:21Z","pushed_at":"2015-11-11T15:55:15Z","git_url":"git://github.com/rapid7/convection.git","ssh_url":"git@github.com:rapid7/convection.git","clone_url":"https://github.com/rapid7/convection.git","svn_url":"https://github.com/rapid7/convection","homepage":null,"size":1241,"stargazers_count":22,"watchers_count":22,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/convection/pulls/65"},"html":{"href":"https://github.com/rapid7/convection/pull/65"},"issue":{"href":"https://api.github.com/repos/rapid7/convection/issues/65"},"comments":{"href":"https://api.github.com/repos/rapid7/convection/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/convection/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/convection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapid7/convection/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/convection/statuses/30041fa2efbbcb10a132b06ab1ce4cf92dc41c1e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":37,"deletions":0,"changed_files":1}}