{"action":"opened","number":169,"pull_request":{"url":"https://api.github.com/repos/NerdWalletOSS/AB/pulls/169","id":204255960,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MjU1OTYw","html_url":"https://github.com/NerdWalletOSS/AB/pull/169","diff_url":"https://github.com/NerdWalletOSS/AB/pull/169.diff","patch_url":"https://github.com/NerdWalletOSS/AB/pull/169.patch","issue_url":"https://api.github.com/repos/NerdWalletOSS/AB/issues/169","number":169,"state":"open","locked":false,"title":"Ensure we use ECS credentials for AWS calls, get correct IP","user":{"login":"borgstrom","id":1594130,"node_id":"MDQ6VXNlcjE1OTQxMzA=","avatar_url":"https://avatars0.githubusercontent.com/u/1594130?v=4","gravatar_id":"","url":"https://api.github.com/users/borgstrom","html_url":"https://github.com/borgstrom","followers_url":"https://api.github.com/users/borgstrom/followers","following_url":"https://api.github.com/users/borgstrom/following{/other_user}","gists_url":"https://api.github.com/users/borgstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/borgstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgstrom/subscriptions","organizations_url":"https://api.github.com/users/borgstrom/orgs","repos_url":"https://api.github.com/users/borgstrom/repos","events_url":"https://api.github.com/users/borgstrom/events{/privacy}","received_events_url":"https://api.github.com/users/borgstrom/received_events","type":"User","site_admin":false},"body":"In #168 I added initial ECS discovery code, however it didn't work for two reasons.\r\n\r\n1. [The PHP SDK doesn't include the ECS credential source by default](https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials_provider.html#chaining-providers), so we couldn't get any credentials on the deployed instance.\r\n\r\n2. I trusted the `bindIP` result, which ended up being `0.0.0.0`.  So, now we dereference the EC2 ID and use the private IP of that instance.","created_at":"2018-07-26T20:21:28Z","updated_at":"2018-07-26T20:21:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NerdWalletOSS/AB/pulls/169/commits","review_comments_url":"https://api.github.com/repos/NerdWalletOSS/AB/pulls/169/comments","review_comment_url":"https://api.github.com/repos/NerdWalletOSS/AB/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NerdWalletOSS/AB/issues/169/comments","statuses_url":"https://api.github.com/repos/NerdWalletOSS/AB/statuses/309b177782caa7e484aede01f3741b7da25316f2","head":{"label":"NerdWalletOSS:ecs-finder-fixes","ref":"ecs-finder-fixes","sha":"309b177782caa7e484aede01f3741b7da25316f2","user":{"login":"NerdWalletOSS","id":22972508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTcyNTA4","avatar_url":"https://avatars2.githubusercontent.com/u/22972508?v=4","gravatar_id":"","url":"https://api.github.com/users/NerdWalletOSS","html_url":"https://github.com/NerdWalletOSS","followers_url":"https://api.github.com/users/NerdWalletOSS/followers","following_url":"https://api.github.com/users/NerdWalletOSS/following{/other_user}","gists_url":"https://api.github.com/users/NerdWalletOSS/gists{/gist_id}","starred_url":"https://api.github.com/users/NerdWalletOSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NerdWalletOSS/subscriptions","organizations_url":"https://api.github.com/users/NerdWalletOSS/orgs","repos_url":"https://api.github.com/users/NerdWalletOSS/repos","events_url":"https://api.github.com/users/NerdWalletOSS/events{/privacy}","received_events_url":"https://api.github.com/users/NerdWalletOSS/received_events","type":"Organization","site_admin":false},"repo":{"id":98567204,"node_id":"MDEwOlJlcG9zaXRvcnk5ODU2NzIwNA==","name":"AB","full_name":"NerdWalletOSS/AB","owner":{"login":"NerdWalletOSS","id":22972508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTcyNTA4","avatar_url":"https://avatars2.githubusercontent.com/u/22972508?v=4","gravatar_id":"","url":"https://api.github.com/users/NerdWalletOSS","html_url":"https://github.com/NerdWalletOSS","followers_url":"https://api.github.com/users/NerdWalletOSS/followers","following_url":"https://api.github.com/users/NerdWalletOSS/following{/other_user}","gists_url":"https://api.github.com/users/NerdWalletOSS/gists{/gist_id}","starred_url":"https://api.github.com/users/NerdWalletOSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NerdWalletOSS/subscriptions","organizations_url":"https://api.github.com/users/NerdWalletOSS/orgs","repos_url":"https://api.github.com/users/NerdWalletOSS/repos","events_url":"https://api.github.com/users/NerdWalletOSS/events{/privacy}","received_events_url":"https://api.github.com/users/NerdWalletOSS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NerdWalletOSS/AB","description":"AB Testing","fork":false,"url":"https://api.github.com/repos/NerdWalletOSS/AB","forks_url":"https://api.github.com/repos/NerdWalletOSS/AB/forks","keys_url":"https://api.github.com/repos/NerdWalletOSS/AB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NerdWalletOSS/AB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NerdWalletOSS/AB/teams","hooks_url":"https://api.github.com/repos/NerdWalletOSS/AB/hooks","issue_events_url":"https://api.github.com/repos/NerdWalletOSS/AB/issues/events{/number}","events_url":"https://api.github.com/repos/NerdWalletOSS/AB/events","assignees_url":"https://api.github.com/repos/NerdWalletOSS/AB/assignees{/user}","branches_url":"https://api.github.com/repos/NerdWalletOSS/AB/branches{/branch}","tags_url":"https://api.github.com/repos/NerdWalletOSS/AB/tags","blobs_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/refs{/sha}","trees_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NerdWalletOSS/AB/statuses/{sha}","languages_url":"https://api.github.com/repos/NerdWalletOSS/AB/languages","stargazers_url":"https://api.github.com/repos/NerdWalletOSS/AB/stargazers","contributors_url":"https://api.github.com/repos/NerdWalletOSS/AB/contributors","subscribers_url":"https://api.github.com/repos/NerdWalletOSS/AB/subscribers","subscription_url":"https://api.github.com/repos/NerdWalletOSS/AB/subscription","commits_url":"https://api.github.com/repos/NerdWalletOSS/AB/commits{/sha}","git_commits_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/commits{/sha}","comments_url":"https://api.github.com/repos/NerdWalletOSS/AB/comments{/number}","issue_comment_url":"https://api.github.com/repos/NerdWalletOSS/AB/issues/comments{/number}","contents_url":"https://api.github.com/repos/NerdWalletOSS/AB/contents/{+path}","compare_url":"https://api.github.com/repos/NerdWalletOSS/AB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NerdWalletOSS/AB/merges","archive_url":"https://api.github.com/repos/NerdWalletOSS/AB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NerdWalletOSS/AB/downloads","issues_url":"https://api.github.com/repos/NerdWalletOSS/AB/issues{/number}","pulls_url":"https://api.github.com/repos/NerdWalletOSS/AB/pulls{/number}","milestones_url":"https://api.github.com/repos/NerdWalletOSS/AB/milestones{/number}","notifications_url":"https://api.github.com/repos/NerdWalletOSS/AB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NerdWalletOSS/AB/labels{/name}","releases_url":"https://api.github.com/repos/NerdWalletOSS/AB/releases{/id}","deployments_url":"https://api.github.com/repos/NerdWalletOSS/AB/deployments","created_at":"2017-07-27T18:12:38Z","updated_at":"2018-07-25T22:16:02Z","pushed_at":"2018-07-26T20:19:24Z","git_url":"git://github.com/NerdWalletOSS/AB.git","ssh_url":"git@github.com:NerdWalletOSS/AB.git","clone_url":"https://github.com/NerdWalletOSS/AB.git","svn_url":"https://github.com/NerdWalletOSS/AB","homepage":null,"size":90828,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"NerdWalletOSS:master","ref":"master","sha":"d8962763ab4ff673ea7702bbe0e054e9ee9ae056","user":{"login":"NerdWalletOSS","id":22972508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTcyNTA4","avatar_url":"https://avatars2.githubusercontent.com/u/22972508?v=4","gravatar_id":"","url":"https://api.github.com/users/NerdWalletOSS","html_url":"https://github.com/NerdWalletOSS","followers_url":"https://api.github.com/users/NerdWalletOSS/followers","following_url":"https://api.github.com/users/NerdWalletOSS/following{/other_user}","gists_url":"https://api.github.com/users/NerdWalletOSS/gists{/gist_id}","starred_url":"https://api.github.com/users/NerdWalletOSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NerdWalletOSS/subscriptions","organizations_url":"https://api.github.com/users/NerdWalletOSS/orgs","repos_url":"https://api.github.com/users/NerdWalletOSS/repos","events_url":"https://api.github.com/users/NerdWalletOSS/events{/privacy}","received_events_url":"https://api.github.com/users/NerdWalletOSS/received_events","type":"Organization","site_admin":false},"repo":{"id":98567204,"node_id":"MDEwOlJlcG9zaXRvcnk5ODU2NzIwNA==","name":"AB","full_name":"NerdWalletOSS/AB","owner":{"login":"NerdWalletOSS","id":22972508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTcyNTA4","avatar_url":"https://avatars2.githubusercontent.com/u/22972508?v=4","gravatar_id":"","url":"https://api.github.com/users/NerdWalletOSS","html_url":"https://github.com/NerdWalletOSS","followers_url":"https://api.github.com/users/NerdWalletOSS/followers","following_url":"https://api.github.com/users/NerdWalletOSS/following{/other_user}","gists_url":"https://api.github.com/users/NerdWalletOSS/gists{/gist_id}","starred_url":"https://api.github.com/users/NerdWalletOSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NerdWalletOSS/subscriptions","organizations_url":"https://api.github.com/users/NerdWalletOSS/orgs","repos_url":"https://api.github.com/users/NerdWalletOSS/repos","events_url":"https://api.github.com/users/NerdWalletOSS/events{/privacy}","received_events_url":"https://api.github.com/users/NerdWalletOSS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NerdWalletOSS/AB","description":"AB Testing","fork":false,"url":"https://api.github.com/repos/NerdWalletOSS/AB","forks_url":"https://api.github.com/repos/NerdWalletOSS/AB/forks","keys_url":"https://api.github.com/repos/NerdWalletOSS/AB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NerdWalletOSS/AB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NerdWalletOSS/AB/teams","hooks_url":"https://api.github.com/repos/NerdWalletOSS/AB/hooks","issue_events_url":"https://api.github.com/repos/NerdWalletOSS/AB/issues/events{/number}","events_url":"https://api.github.com/repos/NerdWalletOSS/AB/events","assignees_url":"https://api.github.com/repos/NerdWalletOSS/AB/assignees{/user}","branches_url":"https://api.github.com/repos/NerdWalletOSS/AB/branches{/branch}","tags_url":"https://api.github.com/repos/NerdWalletOSS/AB/tags","blobs_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/refs{/sha}","trees_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NerdWalletOSS/AB/statuses/{sha}","languages_url":"https://api.github.com/repos/NerdWalletOSS/AB/languages","stargazers_url":"https://api.github.com/repos/NerdWalletOSS/AB/stargazers","contributors_url":"https://api.github.com/repos/NerdWalletOSS/AB/contributors","subscribers_url":"https://api.github.com/repos/NerdWalletOSS/AB/subscribers","subscription_url":"https://api.github.com/repos/NerdWalletOSS/AB/subscription","commits_url":"https://api.github.com/repos/NerdWalletOSS/AB/commits{/sha}","git_commits_url":"https://api.github.com/repos/NerdWalletOSS/AB/git/commits{/sha}","comments_url":"https://api.github.com/repos/NerdWalletOSS/AB/comments{/number}","issue_comment_url":"https://api.github.com/repos/NerdWalletOSS/AB/issues/comments{/number}","contents_url":"https://api.github.com/repos/NerdWalletOSS/AB/contents/{+path}","compare_url":"https://api.github.com/repos/NerdWalletOSS/AB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NerdWalletOSS/AB/merges","archive_url":"https://api.github.com/repos/NerdWalletOSS/AB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NerdWalletOSS/AB/downloads","issues_url":"https://api.github.com/repos/NerdWalletOSS/AB/issues{/number}","pulls_url":"https://api.github.com/repos/NerdWalletOSS/AB/pulls{/number}","milestones_url":"https://api.github.com/repos/NerdWalletOSS/AB/milestones{/number}","notifications_url":"https://api.github.com/repos/NerdWalletOSS/AB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NerdWalletOSS/AB/labels{/name}","releases_url":"https://api.github.com/repos/NerdWalletOSS/AB/releases{/id}","deployments_url":"https://api.github.com/repos/NerdWalletOSS/AB/deployments","created_at":"2017-07-27T18:12:38Z","updated_at":"2018-07-25T22:16:02Z","pushed_at":"2018-07-26T20:19:24Z","git_url":"git://github.com/NerdWalletOSS/AB.git","ssh_url":"git@github.com:NerdWalletOSS/AB.git","clone_url":"https://github.com/NerdWalletOSS/AB.git","svn_url":"https://github.com/NerdWalletOSS/AB","homepage":null,"size":90828,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NerdWalletOSS/AB/pulls/169"},"html":{"href":"https://github.com/NerdWalletOSS/AB/pull/169"},"issue":{"href":"https://api.github.com/repos/NerdWalletOSS/AB/issues/169"},"comments":{"href":"https://api.github.com/repos/NerdWalletOSS/AB/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/NerdWalletOSS/AB/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/NerdWalletOSS/AB/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NerdWalletOSS/AB/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/NerdWalletOSS/AB/statuses/309b177782caa7e484aede01f3741b7da25316f2"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":42,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"borgstrom"}}