{"action":"created","comment":{"url":"https://api.github.com/repos/samsung-cnct/kraken/pulls/comments/76893807","id":76893807,"diff_hunk":"@@ -7,6 +7,131 @@ provider \"aws\" {\n   max_retries = \"${var.max_retries}\"\n }\n \n+resource \"aws_iam_role_policy\" \"master_policy\" {\n+  name = \"${replace(\"${var.aws_user_prefix}-${var.cluster_name}-master-policy\", \"_\", \"-\")}\"\n+  role = \"${aws_iam_role.kubernetes_master_role.id}\"\n+  policy = <<EOF\n+{\n+  \"Version\": \"2012-10-17\",\n+  \"Statement\": [\n+    {\n+      \"Effect\": \"Allow\",\n+      \"Action\": [\"ec2:*\"],\n+      \"Resource\": [\"*\"]\n+    },\n+    {\n+      \"Effect\": \"Allow\",\n+      \"Action\": [\"elasticloadbalancing:*\"],\n+      \"Resource\": [\"*\"]\n+    },\n+    {\n+      \"Effect\": \"Allow\",\n+      \"Action\": \"s3:*\",\n+      \"Resource\": [\n+        \"arn:aws:s3:::kubernetes-*\"\n+      ]\n+    }\n+  ]\n+} \n+EOF","path":"terraform/aws/aws.tf","position":30,"original_position":30,"commit_id":"0eb2a2787f79ff41c8644f76e4eac2d6cb4da71b","original_commit_id":"0eb2a2787f79ff41c8644f76e4eac2d6cb4da71b","user":{"login":"davidewatson","id":11819015,"avatar_url":"https://avatars.githubusercontent.com/u/11819015?v=3","gravatar_id":"","url":"https://api.github.com/users/davidewatson","html_url":"https://github.com/davidewatson","followers_url":"https://api.github.com/users/davidewatson/followers","following_url":"https://api.github.com/users/davidewatson/following{/other_user}","gists_url":"https://api.github.com/users/davidewatson/gists{/gist_id}","starred_url":"https://api.github.com/users/davidewatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidewatson/subscriptions","organizations_url":"https://api.github.com/users/davidewatson/orgs","repos_url":"https://api.github.com/users/davidewatson/repos","events_url":"https://api.github.com/users/davidewatson/events{/privacy}","received_events_url":"https://api.github.com/users/davidewatson/received_events","type":"User","site_admin":false},"body":"?","created_at":"2016-08-30T22:44:07Z","updated_at":"2016-08-30T22:44:07Z","html_url":"https://github.com/samsung-cnct/kraken/pull/360#discussion_r76893807","pull_request_url":"https://api.github.com/repos/samsung-cnct/kraken/pulls/360","_links":{"self":{"href":"https://api.github.com/repos/samsung-cnct/kraken/pulls/comments/76893807"},"html":{"href":"https://github.com/samsung-cnct/kraken/pull/360#discussion_r76893807"},"pull_request":{"href":"https://api.github.com/repos/samsung-cnct/kraken/pulls/360"}}},"pull_request":{"url":"https://api.github.com/repos/samsung-cnct/kraken/pulls/360","id":83171511,"html_url":"https://github.com/samsung-cnct/kraken/pull/360","diff_url":"https://github.com/samsung-cnct/kraken/pull/360.diff","patch_url":"https://github.com/samsung-cnct/kraken/pull/360.patch","issue_url":"https://api.github.com/repos/samsung-cnct/kraken/issues/360","number":360,"state":"open","locked":false,"title":"KRAK-460: made changes that allow us to create roles for instances.","user":{"login":"alejandroEsc","id":20777618,"avatar_url":"https://avatars.githubusercontent.com/u/20777618?v=3","gravatar_id":"","url":"https://api.github.com/users/alejandroEsc","html_url":"https://github.com/alejandroEsc","followers_url":"https://api.github.com/users/alejandroEsc/followers","following_url":"https://api.github.com/users/alejandroEsc/following{/other_user}","gists_url":"https://api.github.com/users/alejandroEsc/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandroEsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandroEsc/subscriptions","organizations_url":"https://api.github.com/users/alejandroEsc/orgs","repos_url":"https://api.github.com/users/alejandroEsc/repos","events_url":"https://api.github.com/users/alejandroEsc/events{/privacy}","received_events_url":"https://api.github.com/users/alejandroEsc/received_events","type":"User","site_admin":false},"body":"WORK IN PROGRESS","created_at":"2016-08-29T21:32:15Z","updated_at":"2016-08-30T22:44:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0ed8d94bbedd9fb96a9e055880ebb725155f8b5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/samsung-cnct/kraken/pulls/360/commits","review_comments_url":"https://api.github.com/repos/samsung-cnct/kraken/pulls/360/comments","review_comment_url":"https://api.github.com/repos/samsung-cnct/kraken/pulls/comments{/number}","comments_url":"https://api.github.com/repos/samsung-cnct/kraken/issues/360/comments","statuses_url":"https://api.github.com/repos/samsung-cnct/kraken/statuses/0eb2a2787f79ff41c8644f76e4eac2d6cb4da71b","head":{"label":"alejandroEsc:ae/KRAK-460/iamroles","ref":"ae/KRAK-460/iamroles","sha":"0eb2a2787f79ff41c8644f76e4eac2d6cb4da71b","user":{"login":"alejandroEsc","id":20777618,"avatar_url":"https://avatars.githubusercontent.com/u/20777618?v=3","gravatar_id":"","url":"https://api.github.com/users/alejandroEsc","html_url":"https://github.com/alejandroEsc","followers_url":"https://api.github.com/users/alejandroEsc/followers","following_url":"https://api.github.com/users/alejandroEsc/following{/other_user}","gists_url":"https://api.github.com/users/alejandroEsc/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandroEsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandroEsc/subscriptions","organizations_url":"https://api.github.com/users/alejandroEsc/orgs","repos_url":"https://api.github.com/users/alejandroEsc/repos","events_url":"https://api.github.com/users/alejandroEsc/events{/privacy}","received_events_url":"https://api.github.com/users/alejandroEsc/received_events","type":"User","site_admin":false},"repo":{"id":65502893,"name":"kraken","full_name":"alejandroEsc/kraken","owner":{"login":"alejandroEsc","id":20777618,"avatar_url":"https://avatars.githubusercontent.com/u/20777618?v=3","gravatar_id":"","url":"https://api.github.com/users/alejandroEsc","html_url":"https://github.com/alejandroEsc","followers_url":"https://api.github.com/users/alejandroEsc/followers","following_url":"https://api.github.com/users/alejandroEsc/following{/other_user}","gists_url":"https://api.github.com/users/alejandroEsc/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandroEsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandroEsc/subscriptions","organizations_url":"https://api.github.com/users/alejandroEsc/orgs","repos_url":"https://api.github.com/users/alejandroEsc/repos","events_url":"https://api.github.com/users/alejandroEsc/events{/privacy}","received_events_url":"https://api.github.com/users/alejandroEsc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alejandroEsc/kraken","description":"Deploy a Kubernetes cluster using Terraform and Ansible on top of CoreOS.","fork":true,"url":"https://api.github.com/repos/alejandroEsc/kraken","forks_url":"https://api.github.com/repos/alejandroEsc/kraken/forks","keys_url":"https://api.github.com/repos/alejandroEsc/kraken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alejandroEsc/kraken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alejandroEsc/kraken/teams","hooks_url":"https://api.github.com/repos/alejandroEsc/kraken/hooks","issue_events_url":"https://api.github.com/repos/alejandroEsc/kraken/issues/events{/number}","events_url":"https://api.github.com/repos/alejandroEsc/kraken/events","assignees_url":"https://api.github.com/repos/alejandroEsc/kraken/assignees{/user}","branches_url":"https://api.github.com/repos/alejandroEsc/kraken/branches{/branch}","tags_url":"https://api.github.com/repos/alejandroEsc/kraken/tags","blobs_url":"https://api.github.com/repos/alejandroEsc/kraken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alejandroEsc/kraken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alejandroEsc/kraken/git/refs{/sha}","trees_url":"https://api.github.com/repos/alejandroEsc/kraken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alejandroEsc/kraken/statuses/{sha}","languages_url":"https://api.github.com/repos/alejandroEsc/kraken/languages","stargazers_url":"https://api.github.com/repos/alejandroEsc/kraken/stargazers","contributors_url":"https://api.github.com/repos/alejandroEsc/kraken/contributors","subscribers_url":"https://api.github.com/repos/alejandroEsc/kraken/subscribers","subscription_url":"https://api.github.com/repos/alejandroEsc/kraken/subscription","commits_url":"https://api.github.com/repos/alejandroEsc/kraken/commits{/sha}","git_commits_url":"https://api.github.com/repos/alejandroEsc/kraken/git/commits{/sha}","comments_url":"https://api.github.com/repos/alejandroEsc/kraken/comments{/number}","issue_comment_url":"https://api.github.com/repos/alejandroEsc/kraken/issues/comments{/number}","contents_url":"https://api.github.com/repos/alejandroEsc/kraken/contents/{+path}","compare_url":"https://api.github.com/repos/alejandroEsc/kraken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alejandroEsc/kraken/merges","archive_url":"https://api.github.com/repos/alejandroEsc/kraken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alejandroEsc/kraken/downloads","issues_url":"https://api.github.com/repos/alejandroEsc/kraken/issues{/number}","pulls_url":"https://api.github.com/repos/alejandroEsc/kraken/pulls{/number}","milestones_url":"https://api.github.com/repos/alejandroEsc/kraken/milestones{/number}","notifications_url":"https://api.github.com/repos/alejandroEsc/kraken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alejandroEsc/kraken/labels{/name}","releases_url":"https://api.github.com/repos/alejandroEsc/kraken/releases{/id}","deployments_url":"https://api.github.com/repos/alejandroEsc/kraken/deployments","created_at":"2016-08-11T21:31:24Z","updated_at":"2016-08-11T21:31:26Z","pushed_at":"2016-08-30T21:00:12Z","git_url":"git://github.com/alejandroEsc/kraken.git","ssh_url":"git@github.com:alejandroEsc/kraken.git","clone_url":"https://github.com/alejandroEsc/kraken.git","svn_url":"https://github.com/alejandroEsc/kraken","homepage":"","size":1777,"stargazers_count":0,"watchers_count":0,"language":"HCL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"samsung-cnct:master","ref":"master","sha":"5e9663ec1517366a3771cd96281cc02513b6160a","user":{"login":"samsung-cnct","id":11511065,"avatar_url":"https://avatars.githubusercontent.com/u/11511065?v=3","gravatar_id":"","url":"https://api.github.com/users/samsung-cnct","html_url":"https://github.com/samsung-cnct","followers_url":"https://api.github.com/users/samsung-cnct/followers","following_url":"https://api.github.com/users/samsung-cnct/following{/other_user}","gists_url":"https://api.github.com/users/samsung-cnct/gists{/gist_id}","starred_url":"https://api.github.com/users/samsung-cnct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsung-cnct/subscriptions","organizations_url":"https://api.github.com/users/samsung-cnct/orgs","repos_url":"https://api.github.com/users/samsung-cnct/repos","events_url":"https://api.github.com/users/samsung-cnct/events{/privacy}","received_events_url":"https://api.github.com/users/samsung-cnct/received_events","type":"Organization","site_admin":false},"repo":{"id":32483484,"name":"kraken","full_name":"samsung-cnct/kraken","owner":{"login":"samsung-cnct","id":11511065,"avatar_url":"https://avatars.githubusercontent.com/u/11511065?v=3","gravatar_id":"","url":"https://api.github.com/users/samsung-cnct","html_url":"https://github.com/samsung-cnct","followers_url":"https://api.github.com/users/samsung-cnct/followers","following_url":"https://api.github.com/users/samsung-cnct/following{/other_user}","gists_url":"https://api.github.com/users/samsung-cnct/gists{/gist_id}","starred_url":"https://api.github.com/users/samsung-cnct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsung-cnct/subscriptions","organizations_url":"https://api.github.com/users/samsung-cnct/orgs","repos_url":"https://api.github.com/users/samsung-cnct/repos","events_url":"https://api.github.com/users/samsung-cnct/events{/privacy}","received_events_url":"https://api.github.com/users/samsung-cnct/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/samsung-cnct/kraken","description":"Deploy a Kubernetes cluster using Terraform and Ansible on top of CoreOS.","fork":false,"url":"https://api.github.com/repos/samsung-cnct/kraken","forks_url":"https://api.github.com/repos/samsung-cnct/kraken/forks","keys_url":"https://api.github.com/repos/samsung-cnct/kraken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samsung-cnct/kraken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samsung-cnct/kraken/teams","hooks_url":"https://api.github.com/repos/samsung-cnct/kraken/hooks","issue_events_url":"https://api.github.com/repos/samsung-cnct/kraken/issues/events{/number}","events_url":"https://api.github.com/repos/samsung-cnct/kraken/events","assignees_url":"https://api.github.com/repos/samsung-cnct/kraken/assignees{/user}","branches_url":"https://api.github.com/repos/samsung-cnct/kraken/branches{/branch}","tags_url":"https://api.github.com/repos/samsung-cnct/kraken/tags","blobs_url":"https://api.github.com/repos/samsung-cnct/kraken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samsung-cnct/kraken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samsung-cnct/kraken/git/refs{/sha}","trees_url":"https://api.github.com/repos/samsung-cnct/kraken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samsung-cnct/kraken/statuses/{sha}","languages_url":"https://api.github.com/repos/samsung-cnct/kraken/languages","stargazers_url":"https://api.github.com/repos/samsung-cnct/kraken/stargazers","contributors_url":"https://api.github.com/repos/samsung-cnct/kraken/contributors","subscribers_url":"https://api.github.com/repos/samsung-cnct/kraken/subscribers","subscription_url":"https://api.github.com/repos/samsung-cnct/kraken/subscription","commits_url":"https://api.github.com/repos/samsung-cnct/kraken/commits{/sha}","git_commits_url":"https://api.github.com/repos/samsung-cnct/kraken/git/commits{/sha}","comments_url":"https://api.github.com/repos/samsung-cnct/kraken/comments{/number}","issue_comment_url":"https://api.github.com/repos/samsung-cnct/kraken/issues/comments{/number}","contents_url":"https://api.github.com/repos/samsung-cnct/kraken/contents/{+path}","compare_url":"https://api.github.com/repos/samsung-cnct/kraken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samsung-cnct/kraken/merges","archive_url":"https://api.github.com/repos/samsung-cnct/kraken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samsung-cnct/kraken/downloads","issues_url":"https://api.github.com/repos/samsung-cnct/kraken/issues{/number}","pulls_url":"https://api.github.com/repos/samsung-cnct/kraken/pulls{/number}","milestones_url":"https://api.github.com/repos/samsung-cnct/kraken/milestones{/number}","notifications_url":"https://api.github.com/repos/samsung-cnct/kraken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samsung-cnct/kraken/labels{/name}","releases_url":"https://api.github.com/repos/samsung-cnct/kraken/releases{/id}","deployments_url":"https://api.github.com/repos/samsung-cnct/kraken/deployments","created_at":"2015-03-18T20:47:13Z","updated_at":"2016-08-23T13:13:21Z","pushed_at":"2016-08-30T22:10:55Z","git_url":"git://github.com/samsung-cnct/kraken.git","ssh_url":"git@github.com:samsung-cnct/kraken.git","clone_url":"https://github.com/samsung-cnct/kraken.git","svn_url":"https://github.com/samsung-cnct/kraken","homepage":"","size":2081,"stargazers_count":60,"watchers_count":60,"language":"HCL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":6,"forks":20,"open_issues":6,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/samsung-cnct/kraken/pulls/360"},"html":{"href":"https://github.com/samsung-cnct/kraken/pull/360"},"issue":{"href":"https://api.github.com/repos/samsung-cnct/kraken/issues/360"},"comments":{"href":"https://api.github.com/repos/samsung-cnct/kraken/issues/360/comments"},"review_comments":{"href":"https://api.github.com/repos/samsung-cnct/kraken/pulls/360/comments"},"review_comment":{"href":"https://api.github.com/repos/samsung-cnct/kraken/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/samsung-cnct/kraken/pulls/360/commits"},"statuses":{"href":"https://api.github.com/repos/samsung-cnct/kraken/statuses/0eb2a2787f79ff41c8644f76e4eac2d6cb4da71b"}}}}
{"actor":{"display_login":"davidewatson"}}