{"action":"opened","number":281,"pull_request":{"url":"https://api.github.com/repos/fog/fog-aws/pulls/281","id":78879607,"html_url":"https://github.com/fog/fog-aws/pull/281","diff_url":"https://github.com/fog/fog-aws/pull/281.diff","patch_url":"https://github.com/fog/fog-aws/pull/281.patch","issue_url":"https://api.github.com/repos/fog/fog-aws/issues/281","number":281,"state":"open","locked":false,"title":"ECS container credentials","user":{"login":"ryansch","id":146013,"avatar_url":"https://avatars.githubusercontent.com/u/146013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansch","html_url":"https://github.com/ryansch","followers_url":"https://api.github.com/users/ryansch/followers","following_url":"https://api.github.com/users/ryansch/following{/other_user}","gists_url":"https://api.github.com/users/ryansch/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansch/subscriptions","organizations_url":"https://api.github.com/users/ryansch/orgs","repos_url":"https://api.github.com/users/ryansch/repos","events_url":"https://api.github.com/users/ryansch/events{/privacy}","received_events_url":"https://api.github.com/users/ryansch/received_events","type":"User","site_admin":false},"body":"This adds support for ECS task container credentials/roles.\r\nDocs: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html\r\naws-sdk PR: https://github.com/aws/aws-sdk-ruby/pull/1243\r\n\r\nI used the same algorithm as aws-sdk for choosing when to use the ECS creds.  I don't love the `options[:metadata_connection` but we have to connect to a different host to get the region when using ECS creds.","created_at":"2016-07-26T16:05:36Z","updated_at":"2016-07-26T16:05:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87dd6b8f789652be9954c64b98911befff60550a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fog/fog-aws/pulls/281/commits","review_comments_url":"https://api.github.com/repos/fog/fog-aws/pulls/281/comments","review_comment_url":"https://api.github.com/repos/fog/fog-aws/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fog/fog-aws/issues/281/comments","statuses_url":"https://api.github.com/repos/fog/fog-aws/statuses/ecfc0a2905ce2ce7eb0946a44d55f7e49e35311d","head":{"label":"outstand:container-credentials","ref":"container-credentials","sha":"ecfc0a2905ce2ce7eb0946a44d55f7e49e35311d","user":{"login":"outstand","id":141810,"avatar_url":"https://avatars.githubusercontent.com/u/141810?v=3","gravatar_id":"","url":"https://api.github.com/users/outstand","html_url":"https://github.com/outstand","followers_url":"https://api.github.com/users/outstand/followers","following_url":"https://api.github.com/users/outstand/following{/other_user}","gists_url":"https://api.github.com/users/outstand/gists{/gist_id}","starred_url":"https://api.github.com/users/outstand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outstand/subscriptions","organizations_url":"https://api.github.com/users/outstand/orgs","repos_url":"https://api.github.com/users/outstand/repos","events_url":"https://api.github.com/users/outstand/events{/privacy}","received_events_url":"https://api.github.com/users/outstand/received_events","type":"Organization","site_admin":false},"repo":{"id":64174374,"name":"fog-aws","full_name":"outstand/fog-aws","owner":{"login":"outstand","id":141810,"avatar_url":"https://avatars.githubusercontent.com/u/141810?v=3","gravatar_id":"","url":"https://api.github.com/users/outstand","html_url":"https://github.com/outstand","followers_url":"https://api.github.com/users/outstand/followers","following_url":"https://api.github.com/users/outstand/following{/other_user}","gists_url":"https://api.github.com/users/outstand/gists{/gist_id}","starred_url":"https://api.github.com/users/outstand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outstand/subscriptions","organizations_url":"https://api.github.com/users/outstand/orgs","repos_url":"https://api.github.com/users/outstand/repos","events_url":"https://api.github.com/users/outstand/events{/privacy}","received_events_url":"https://api.github.com/users/outstand/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/outstand/fog-aws","description":"Module for the 'fog' gem to support Amazon Web Services http://aws.amazon.com/","fork":true,"url":"https://api.github.com/repos/outstand/fog-aws","forks_url":"https://api.github.com/repos/outstand/fog-aws/forks","keys_url":"https://api.github.com/repos/outstand/fog-aws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/outstand/fog-aws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/outstand/fog-aws/teams","hooks_url":"https://api.github.com/repos/outstand/fog-aws/hooks","issue_events_url":"https://api.github.com/repos/outstand/fog-aws/issues/events{/number}","events_url":"https://api.github.com/repos/outstand/fog-aws/events","assignees_url":"https://api.github.com/repos/outstand/fog-aws/assignees{/user}","branches_url":"https://api.github.com/repos/outstand/fog-aws/branches{/branch}","tags_url":"https://api.github.com/repos/outstand/fog-aws/tags","blobs_url":"https://api.github.com/repos/outstand/fog-aws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/outstand/fog-aws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/outstand/fog-aws/git/refs{/sha}","trees_url":"https://api.github.com/repos/outstand/fog-aws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/outstand/fog-aws/statuses/{sha}","languages_url":"https://api.github.com/repos/outstand/fog-aws/languages","stargazers_url":"https://api.github.com/repos/outstand/fog-aws/stargazers","contributors_url":"https://api.github.com/repos/outstand/fog-aws/contributors","subscribers_url":"https://api.github.com/repos/outstand/fog-aws/subscribers","subscription_url":"https://api.github.com/repos/outstand/fog-aws/subscription","commits_url":"https://api.github.com/repos/outstand/fog-aws/commits{/sha}","git_commits_url":"https://api.github.com/repos/outstand/fog-aws/git/commits{/sha}","comments_url":"https://api.github.com/repos/outstand/fog-aws/comments{/number}","issue_comment_url":"https://api.github.com/repos/outstand/fog-aws/issues/comments{/number}","contents_url":"https://api.github.com/repos/outstand/fog-aws/contents/{+path}","compare_url":"https://api.github.com/repos/outstand/fog-aws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/outstand/fog-aws/merges","archive_url":"https://api.github.com/repos/outstand/fog-aws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/outstand/fog-aws/downloads","issues_url":"https://api.github.com/repos/outstand/fog-aws/issues{/number}","pulls_url":"https://api.github.com/repos/outstand/fog-aws/pulls{/number}","milestones_url":"https://api.github.com/repos/outstand/fog-aws/milestones{/number}","notifications_url":"https://api.github.com/repos/outstand/fog-aws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/outstand/fog-aws/labels{/name}","releases_url":"https://api.github.com/repos/outstand/fog-aws/releases{/id}","deployments_url":"https://api.github.com/repos/outstand/fog-aws/deployments","created_at":"2016-07-25T23:23:01Z","updated_at":"2016-07-25T23:23:04Z","pushed_at":"2016-07-26T16:03:18Z","git_url":"git://github.com/outstand/fog-aws.git","ssh_url":"git@github.com:outstand/fog-aws.git","clone_url":"https://github.com/outstand/fog-aws.git","svn_url":"https://github.com/outstand/fog-aws","homepage":"","size":1457,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"fog:master","ref":"master","sha":"b95651ecc37ce00e84cb45a2b9554cce8be3d366","user":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"repo":{"id":28643625,"name":"fog-aws","full_name":"fog/fog-aws","owner":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fog/fog-aws","description":"Module for the 'fog' gem to support Amazon Web Services http://aws.amazon.com/","fork":false,"url":"https://api.github.com/repos/fog/fog-aws","forks_url":"https://api.github.com/repos/fog/fog-aws/forks","keys_url":"https://api.github.com/repos/fog/fog-aws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fog/fog-aws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fog/fog-aws/teams","hooks_url":"https://api.github.com/repos/fog/fog-aws/hooks","issue_events_url":"https://api.github.com/repos/fog/fog-aws/issues/events{/number}","events_url":"https://api.github.com/repos/fog/fog-aws/events","assignees_url":"https://api.github.com/repos/fog/fog-aws/assignees{/user}","branches_url":"https://api.github.com/repos/fog/fog-aws/branches{/branch}","tags_url":"https://api.github.com/repos/fog/fog-aws/tags","blobs_url":"https://api.github.com/repos/fog/fog-aws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fog/fog-aws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fog/fog-aws/git/refs{/sha}","trees_url":"https://api.github.com/repos/fog/fog-aws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fog/fog-aws/statuses/{sha}","languages_url":"https://api.github.com/repos/fog/fog-aws/languages","stargazers_url":"https://api.github.com/repos/fog/fog-aws/stargazers","contributors_url":"https://api.github.com/repos/fog/fog-aws/contributors","subscribers_url":"https://api.github.com/repos/fog/fog-aws/subscribers","subscription_url":"https://api.github.com/repos/fog/fog-aws/subscription","commits_url":"https://api.github.com/repos/fog/fog-aws/commits{/sha}","git_commits_url":"https://api.github.com/repos/fog/fog-aws/git/commits{/sha}","comments_url":"https://api.github.com/repos/fog/fog-aws/comments{/number}","issue_comment_url":"https://api.github.com/repos/fog/fog-aws/issues/comments{/number}","contents_url":"https://api.github.com/repos/fog/fog-aws/contents/{+path}","compare_url":"https://api.github.com/repos/fog/fog-aws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fog/fog-aws/merges","archive_url":"https://api.github.com/repos/fog/fog-aws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fog/fog-aws/downloads","issues_url":"https://api.github.com/repos/fog/fog-aws/issues{/number}","pulls_url":"https://api.github.com/repos/fog/fog-aws/pulls{/number}","milestones_url":"https://api.github.com/repos/fog/fog-aws/milestones{/number}","notifications_url":"https://api.github.com/repos/fog/fog-aws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fog/fog-aws/labels{/name}","releases_url":"https://api.github.com/repos/fog/fog-aws/releases{/id}","deployments_url":"https://api.github.com/repos/fog/fog-aws/deployments","created_at":"2014-12-30T20:04:47Z","updated_at":"2016-07-25T18:21:16Z","pushed_at":"2016-07-26T16:05:37Z","git_url":"git://github.com/fog/fog-aws.git","ssh_url":"git@github.com:fog/fog-aws.git","clone_url":"https://github.com/fog/fog-aws.git","svn_url":"https://github.com/fog/fog-aws","homepage":"","size":1642,"stargazers_count":66,"watchers_count":66,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":128,"mirror_url":null,"open_issues_count":69,"forks":128,"open_issues":69,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fog/fog-aws/pulls/281"},"html":{"href":"https://github.com/fog/fog-aws/pull/281"},"issue":{"href":"https://api.github.com/repos/fog/fog-aws/issues/281"},"comments":{"href":"https://api.github.com/repos/fog/fog-aws/issues/281/comments"},"review_comments":{"href":"https://api.github.com/repos/fog/fog-aws/pulls/281/comments"},"review_comment":{"href":"https://api.github.com/repos/fog/fog-aws/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fog/fog-aws/pulls/281/commits"},"statuses":{"href":"https://api.github.com/repos/fog/fog-aws/statuses/ecfc0a2905ce2ce7eb0946a44d55f7e49e35311d"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":33,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"ryansch"}}