{"action":"created","comment":{"url":"https://api.github.com/repos/gruntwork-io/terratest/pulls/comments/207515365","pull_request_review_id":143144615,"id":207515365,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzUxNTM2NQ==","diff_hunk":"@@ -25,7 +25,7 @@ it should be free, but you are completely responsible for all AWS charges.\n 1. Sign up for [AWS](https://aws.amazon.com/).\n 1. Configure your AWS credentials using one of the [supported methods for AWS CLI\n    tools](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html), such as setting the\n-   `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables. If you're using the `~/.aws/config` file for profiles then export `AWS_SDK_LOAD_CONFIG` as \"True\".","path":"examples/terraform-aws-example/README.md","position":4,"original_position":4,"commit_id":"fec98c9b30dbe3a46faab2802b1816dd7f4d0612","original_commit_id":"fec98c9b30dbe3a46faab2802b1816dd7f4d0612","user":{"login":"brikis98","id":711908,"node_id":"MDQ6VXNlcjcxMTkwOA==","avatar_url":"https://avatars1.githubusercontent.com/u/711908?v=4","gravatar_id":"","url":"https://api.github.com/users/brikis98","html_url":"https://github.com/brikis98","followers_url":"https://api.github.com/users/brikis98/followers","following_url":"https://api.github.com/users/brikis98/following{/other_user}","gists_url":"https://api.github.com/users/brikis98/gists{/gist_id}","starred_url":"https://api.github.com/users/brikis98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brikis98/subscriptions","organizations_url":"https://api.github.com/users/brikis98/orgs","repos_url":"https://api.github.com/users/brikis98/repos","events_url":"https://api.github.com/users/brikis98/events{/privacy}","received_events_url":"https://api.github.com/users/brikis98/received_events","type":"User","site_admin":false},"body":"Why remove this?","created_at":"2018-08-03T11:22:43Z","updated_at":"2018-08-03T11:27:05Z","html_url":"https://github.com/gruntwork-io/terratest/pull/130#discussion_r207515365","pull_request_url":"https://api.github.com/repos/gruntwork-io/terratest/pulls/130","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/gruntwork-io/terratest/pulls/comments/207515365"},"html":{"href":"https://github.com/gruntwork-io/terratest/pull/130#discussion_r207515365"},"pull_request":{"href":"https://api.github.com/repos/gruntwork-io/terratest/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/gruntwork-io/terratest/pulls/130","id":199195314,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MTk1MzE0","html_url":"https://github.com/gruntwork-io/terratest/pull/130","diff_url":"https://github.com/gruntwork-io/terratest/pull/130.diff","patch_url":"https://github.com/gruntwork-io/terratest/pull/130.patch","issue_url":"https://api.github.com/repos/gruntwork-io/terratest/issues/130","number":130,"state":"open","locked":false,"title":"Policy document tests","user":{"login":"Briansbum","id":6951634,"node_id":"MDQ6VXNlcjY5NTE2MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6951634?v=4","gravatar_id":"","url":"https://api.github.com/users/Briansbum","html_url":"https://github.com/Briansbum","followers_url":"https://api.github.com/users/Briansbum/followers","following_url":"https://api.github.com/users/Briansbum/following{/other_user}","gists_url":"https://api.github.com/users/Briansbum/gists{/gist_id}","starred_url":"https://api.github.com/users/Briansbum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Briansbum/subscriptions","organizations_url":"https://api.github.com/users/Briansbum/orgs","repos_url":"https://api.github.com/users/Briansbum/repos","events_url":"https://api.github.com/users/Briansbum/events{/privacy}","received_events_url":"https://api.github.com/users/Briansbum/received_events","type":"User","site_admin":false},"body":"As I mentioned in my [issue](https://github.com/gruntwork-io/terratest/issues/120) on the subject I find myself doing the simple task of verifying that policy documents exist.\r\n\r\nWith a view to getting going with tests on IAM/S3 permissions these functions will let you check for the existence of policy documents and get their contents.","created_at":"2018-07-04T09:47:03Z","updated_at":"2018-08-03T11:27:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc8e0929069b70c1fd5fe99d98f5ab6cdd2f5618","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gruntwork-io/terratest/pulls/130/commits","review_comments_url":"https://api.github.com/repos/gruntwork-io/terratest/pulls/130/comments","review_comment_url":"https://api.github.com/repos/gruntwork-io/terratest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gruntwork-io/terratest/issues/130/comments","statuses_url":"https://api.github.com/repos/gruntwork-io/terratest/statuses/fec98c9b30dbe3a46faab2802b1816dd7f4d0612","head":{"label":"Briansbum:policy-document-tests","ref":"policy-document-tests","sha":"fec98c9b30dbe3a46faab2802b1816dd7f4d0612","user":{"login":"Briansbum","id":6951634,"node_id":"MDQ6VXNlcjY5NTE2MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6951634?v=4","gravatar_id":"","url":"https://api.github.com/users/Briansbum","html_url":"https://github.com/Briansbum","followers_url":"https://api.github.com/users/Briansbum/followers","following_url":"https://api.github.com/users/Briansbum/following{/other_user}","gists_url":"https://api.github.com/users/Briansbum/gists{/gist_id}","starred_url":"https://api.github.com/users/Briansbum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Briansbum/subscriptions","organizations_url":"https://api.github.com/users/Briansbum/orgs","repos_url":"https://api.github.com/users/Briansbum/repos","events_url":"https://api.github.com/users/Briansbum/events{/privacy}","received_events_url":"https://api.github.com/users/Briansbum/received_events","type":"User","site_admin":false},"repo":{"id":137889663,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc4ODk2NjM=","name":"terratest","full_name":"Briansbum/terratest","owner":{"login":"Briansbum","id":6951634,"node_id":"MDQ6VXNlcjY5NTE2MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6951634?v=4","gravatar_id":"","url":"https://api.github.com/users/Briansbum","html_url":"https://github.com/Briansbum","followers_url":"https://api.github.com/users/Briansbum/followers","following_url":"https://api.github.com/users/Briansbum/following{/other_user}","gists_url":"https://api.github.com/users/Briansbum/gists{/gist_id}","starred_url":"https://api.github.com/users/Briansbum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Briansbum/subscriptions","organizations_url":"https://api.github.com/users/Briansbum/orgs","repos_url":"https://api.github.com/users/Briansbum/repos","events_url":"https://api.github.com/users/Briansbum/events{/privacy}","received_events_url":"https://api.github.com/users/Briansbum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Briansbum/terratest","description":" Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.","fork":true,"url":"https://api.github.com/repos/Briansbum/terratest","forks_url":"https://api.github.com/repos/Briansbum/terratest/forks","keys_url":"https://api.github.com/repos/Briansbum/terratest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Briansbum/terratest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Briansbum/terratest/teams","hooks_url":"https://api.github.com/repos/Briansbum/terratest/hooks","issue_events_url":"https://api.github.com/repos/Briansbum/terratest/issues/events{/number}","events_url":"https://api.github.com/repos/Briansbum/terratest/events","assignees_url":"https://api.github.com/repos/Briansbum/terratest/assignees{/user}","branches_url":"https://api.github.com/repos/Briansbum/terratest/branches{/branch}","tags_url":"https://api.github.com/repos/Briansbum/terratest/tags","blobs_url":"https://api.github.com/repos/Briansbum/terratest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Briansbum/terratest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Briansbum/terratest/git/refs{/sha}","trees_url":"https://api.github.com/repos/Briansbum/terratest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Briansbum/terratest/statuses/{sha}","languages_url":"https://api.github.com/repos/Briansbum/terratest/languages","stargazers_url":"https://api.github.com/repos/Briansbum/terratest/stargazers","contributors_url":"https://api.github.com/repos/Briansbum/terratest/contributors","subscribers_url":"https://api.github.com/repos/Briansbum/terratest/subscribers","subscription_url":"https://api.github.com/repos/Briansbum/terratest/subscription","commits_url":"https://api.github.com/repos/Briansbum/terratest/commits{/sha}","git_commits_url":"https://api.github.com/repos/Briansbum/terratest/git/commits{/sha}","comments_url":"https://api.github.com/repos/Briansbum/terratest/comments{/number}","issue_comment_url":"https://api.github.com/repos/Briansbum/terratest/issues/comments{/number}","contents_url":"https://api.github.com/repos/Briansbum/terratest/contents/{+path}","compare_url":"https://api.github.com/repos/Briansbum/terratest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Briansbum/terratest/merges","archive_url":"https://api.github.com/repos/Briansbum/terratest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Briansbum/terratest/downloads","issues_url":"https://api.github.com/repos/Briansbum/terratest/issues{/number}","pulls_url":"https://api.github.com/repos/Briansbum/terratest/pulls{/number}","milestones_url":"https://api.github.com/repos/Briansbum/terratest/milestones{/number}","notifications_url":"https://api.github.com/repos/Briansbum/terratest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Briansbum/terratest/labels{/name}","releases_url":"https://api.github.com/repos/Briansbum/terratest/releases{/id}","deployments_url":"https://api.github.com/repos/Briansbum/terratest/deployments","created_at":"2018-06-19T12:39:47Z","updated_at":"2018-07-03T10:25:03Z","pushed_at":"2018-08-03T11:12:32Z","git_url":"git://github.com/Briansbum/terratest.git","ssh_url":"git@github.com:Briansbum/terratest.git","clone_url":"https://github.com/Briansbum/terratest.git","svn_url":"https://github.com/Briansbum/terratest","homepage":"https://gruntwork.io/","size":624,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gruntwork-io:master","ref":"master","sha":"eb530606d27a6109f37024ebd7cade5bcfecb69a","user":{"login":"gruntwork-io","id":17118990,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MTE4OTkw","avatar_url":"https://avatars3.githubusercontent.com/u/17118990?v=4","gravatar_id":"","url":"https://api.github.com/users/gruntwork-io","html_url":"https://github.com/gruntwork-io","followers_url":"https://api.github.com/users/gruntwork-io/followers","following_url":"https://api.github.com/users/gruntwork-io/following{/other_user}","gists_url":"https://api.github.com/users/gruntwork-io/gists{/gist_id}","starred_url":"https://api.github.com/users/gruntwork-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruntwork-io/subscriptions","organizations_url":"https://api.github.com/users/gruntwork-io/orgs","repos_url":"https://api.github.com/users/gruntwork-io/repos","events_url":"https://api.github.com/users/gruntwork-io/events{/privacy}","received_events_url":"https://api.github.com/users/gruntwork-io/received_events","type":"Organization","site_admin":false},"repo":{"id":53174289,"node_id":"MDEwOlJlcG9zaXRvcnk1MzE3NDI4OQ==","name":"terratest","full_name":"gruntwork-io/terratest","owner":{"login":"gruntwork-io","id":17118990,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MTE4OTkw","avatar_url":"https://avatars3.githubusercontent.com/u/17118990?v=4","gravatar_id":"","url":"https://api.github.com/users/gruntwork-io","html_url":"https://github.com/gruntwork-io","followers_url":"https://api.github.com/users/gruntwork-io/followers","following_url":"https://api.github.com/users/gruntwork-io/following{/other_user}","gists_url":"https://api.github.com/users/gruntwork-io/gists{/gist_id}","starred_url":"https://api.github.com/users/gruntwork-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruntwork-io/subscriptions","organizations_url":"https://api.github.com/users/gruntwork-io/orgs","repos_url":"https://api.github.com/users/gruntwork-io/repos","events_url":"https://api.github.com/users/gruntwork-io/events{/privacy}","received_events_url":"https://api.github.com/users/gruntwork-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gruntwork-io/terratest","description":" Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.","fork":false,"url":"https://api.github.com/repos/gruntwork-io/terratest","forks_url":"https://api.github.com/repos/gruntwork-io/terratest/forks","keys_url":"https://api.github.com/repos/gruntwork-io/terratest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gruntwork-io/terratest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gruntwork-io/terratest/teams","hooks_url":"https://api.github.com/repos/gruntwork-io/terratest/hooks","issue_events_url":"https://api.github.com/repos/gruntwork-io/terratest/issues/events{/number}","events_url":"https://api.github.com/repos/gruntwork-io/terratest/events","assignees_url":"https://api.github.com/repos/gruntwork-io/terratest/assignees{/user}","branches_url":"https://api.github.com/repos/gruntwork-io/terratest/branches{/branch}","tags_url":"https://api.github.com/repos/gruntwork-io/terratest/tags","blobs_url":"https://api.github.com/repos/gruntwork-io/terratest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gruntwork-io/terratest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gruntwork-io/terratest/git/refs{/sha}","trees_url":"https://api.github.com/repos/gruntwork-io/terratest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gruntwork-io/terratest/statuses/{sha}","languages_url":"https://api.github.com/repos/gruntwork-io/terratest/languages","stargazers_url":"https://api.github.com/repos/gruntwork-io/terratest/stargazers","contributors_url":"https://api.github.com/repos/gruntwork-io/terratest/contributors","subscribers_url":"https://api.github.com/repos/gruntwork-io/terratest/subscribers","subscription_url":"https://api.github.com/repos/gruntwork-io/terratest/subscription","commits_url":"https://api.github.com/repos/gruntwork-io/terratest/commits{/sha}","git_commits_url":"https://api.github.com/repos/gruntwork-io/terratest/git/commits{/sha}","comments_url":"https://api.github.com/repos/gruntwork-io/terratest/comments{/number}","issue_comment_url":"https://api.github.com/repos/gruntwork-io/terratest/issues/comments{/number}","contents_url":"https://api.github.com/repos/gruntwork-io/terratest/contents/{+path}","compare_url":"https://api.github.com/repos/gruntwork-io/terratest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gruntwork-io/terratest/merges","archive_url":"https://api.github.com/repos/gruntwork-io/terratest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gruntwork-io/terratest/downloads","issues_url":"https://api.github.com/repos/gruntwork-io/terratest/issues{/number}","pulls_url":"https://api.github.com/repos/gruntwork-io/terratest/pulls{/number}","milestones_url":"https://api.github.com/repos/gruntwork-io/terratest/milestones{/number}","notifications_url":"https://api.github.com/repos/gruntwork-io/terratest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gruntwork-io/terratest/labels{/name}","releases_url":"https://api.github.com/repos/gruntwork-io/terratest/releases{/id}","deployments_url":"https://api.github.com/repos/gruntwork-io/terratest/deployments","created_at":"2016-03-05T00:26:17Z","updated_at":"2018-08-03T08:26:43Z","pushed_at":"2018-08-03T11:12:35Z","git_url":"git://github.com/gruntwork-io/terratest.git","ssh_url":"git@github.com:gruntwork-io/terratest.git","clone_url":"https://github.com/gruntwork-io/terratest.git","svn_url":"https://github.com/gruntwork-io/terratest","homepage":"https://gruntwork.io/","size":578,"stargazers_count":1209,"watchers_count":1209,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":68,"open_issues":17,"watchers":1209,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gruntwork-io/terratest/pulls/130"},"html":{"href":"https://github.com/gruntwork-io/terratest/pull/130"},"issue":{"href":"https://api.github.com/repos/gruntwork-io/terratest/issues/130"},"comments":{"href":"https://api.github.com/repos/gruntwork-io/terratest/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/gruntwork-io/terratest/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/gruntwork-io/terratest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gruntwork-io/terratest/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/gruntwork-io/terratest/statuses/fec98c9b30dbe3a46faab2802b1816dd7f4d0612"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"brikis98"}}