{"action":"closed","number":69,"pull_request":{"url":"https://api.github.com/repos/dogestry/dogestry/pulls/69","id":40733801,"html_url":"https://github.com/dogestry/dogestry/pull/69","diff_url":"https://github.com/dogestry/dogestry/pull/69.diff","patch_url":"https://github.com/dogestry/dogestry/pull/69.patch","issue_url":"https://api.github.com/repos/dogestry/dogestry/issues/69","number":69,"state":"closed","locked":false,"title":"Use instance keys for s3gof3r if flag use-metaservice is passed","user":{"login":"sbecker","id":1001,"avatar_url":"https://avatars.githubusercontent.com/u/1001?v=3","gravatar_id":"","url":"https://api.github.com/users/sbecker","html_url":"https://github.com/sbecker","followers_url":"https://api.github.com/users/sbecker/followers","following_url":"https://api.github.com/users/sbecker/following{/other_user}","gists_url":"https://api.github.com/users/sbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/sbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbecker/subscriptions","organizations_url":"https://api.github.com/users/sbecker/orgs","repos_url":"https://api.github.com/users/sbecker/repos","events_url":"https://api.github.com/users/sbecker/events{/privacy}","received_events_url":"https://api.github.com/users/sbecker/received_events","type":"User","site_admin":false},"body":"# What\r\n\r\nWhen trying to use EC2 instance metadata to push an image, I was getting this error:\r\n```\r\n$ dogestry -use-metaservice push s3://my-bucket-name/ my-image-name\r\n\r\n... other stuff before error ...\r\n\r\nPushing files to S3 remote:\r\n2015/07/24 00:41:13 error when uploading to S3: 403: \"The AWS Access Key Id you provided does not exist in our records.\"\r\n{\"Status\":\"error\", \"Message\": \"Error when uploading to S3: 403: \"The AWS Access Key Id you provided does not exist in our records.\"\"}\r\n```\r\nIt appears that dogestry is using two different s3 clients, and while s3gof3r supports getting the Instance Keys, dogestry was not telling it to do so, when passing the -use-metaservice flag. \r\n\r\nThis tells s3gof3r to get the keys from ec2 instance metadata if that flag is passed. Now I no longer get the error, and my image is on S3! Sweet victory.","created_at":"2015-07-24T00:53:36Z","updated_at":"2015-07-24T22:16:54Z","closed_at":"2015-07-24T22:16:54Z","merged_at":"2015-07-24T22:16:54Z","merge_commit_sha":"13d69a4470f08cba6dedb8eb9051ce9558d1dae2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dogestry/dogestry/pulls/69/commits","review_comments_url":"https://api.github.com/repos/dogestry/dogestry/pulls/69/comments","review_comment_url":"https://api.github.com/repos/dogestry/dogestry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dogestry/dogestry/issues/69/comments","statuses_url":"https://api.github.com/repos/dogestry/dogestry/statuses/fa5ca1b86e949985a089734503a78bea27a3ff86","head":{"label":"sbecker:s3gof3r_instance_keys","ref":"s3gof3r_instance_keys","sha":"fa5ca1b86e949985a089734503a78bea27a3ff86","user":{"login":"sbecker","id":1001,"avatar_url":"https://avatars.githubusercontent.com/u/1001?v=3","gravatar_id":"","url":"https://api.github.com/users/sbecker","html_url":"https://github.com/sbecker","followers_url":"https://api.github.com/users/sbecker/followers","following_url":"https://api.github.com/users/sbecker/following{/other_user}","gists_url":"https://api.github.com/users/sbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/sbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbecker/subscriptions","organizations_url":"https://api.github.com/users/sbecker/orgs","repos_url":"https://api.github.com/users/sbecker/repos","events_url":"https://api.github.com/users/sbecker/events{/privacy}","received_events_url":"https://api.github.com/users/sbecker/received_events","type":"User","site_admin":false},"repo":{"id":39598799,"name":"dogestry","full_name":"sbecker/dogestry","owner":{"login":"sbecker","id":1001,"avatar_url":"https://avatars.githubusercontent.com/u/1001?v=3","gravatar_id":"","url":"https://api.github.com/users/sbecker","html_url":"https://github.com/sbecker","followers_url":"https://api.github.com/users/sbecker/followers","following_url":"https://api.github.com/users/sbecker/following{/other_user}","gists_url":"https://api.github.com/users/sbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/sbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbecker/subscriptions","organizations_url":"https://api.github.com/users/sbecker/orgs","repos_url":"https://api.github.com/users/sbecker/repos","events_url":"https://api.github.com/users/sbecker/events{/privacy}","received_events_url":"https://api.github.com/users/sbecker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbecker/dogestry","description":"Use Amazon S3 as your Docker registry","fork":true,"url":"https://api.github.com/repos/sbecker/dogestry","forks_url":"https://api.github.com/repos/sbecker/dogestry/forks","keys_url":"https://api.github.com/repos/sbecker/dogestry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbecker/dogestry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbecker/dogestry/teams","hooks_url":"https://api.github.com/repos/sbecker/dogestry/hooks","issue_events_url":"https://api.github.com/repos/sbecker/dogestry/issues/events{/number}","events_url":"https://api.github.com/repos/sbecker/dogestry/events","assignees_url":"https://api.github.com/repos/sbecker/dogestry/assignees{/user}","branches_url":"https://api.github.com/repos/sbecker/dogestry/branches{/branch}","tags_url":"https://api.github.com/repos/sbecker/dogestry/tags","blobs_url":"https://api.github.com/repos/sbecker/dogestry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbecker/dogestry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbecker/dogestry/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbecker/dogestry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbecker/dogestry/statuses/{sha}","languages_url":"https://api.github.com/repos/sbecker/dogestry/languages","stargazers_url":"https://api.github.com/repos/sbecker/dogestry/stargazers","contributors_url":"https://api.github.com/repos/sbecker/dogestry/contributors","subscribers_url":"https://api.github.com/repos/sbecker/dogestry/subscribers","subscription_url":"https://api.github.com/repos/sbecker/dogestry/subscription","commits_url":"https://api.github.com/repos/sbecker/dogestry/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbecker/dogestry/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbecker/dogestry/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbecker/dogestry/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbecker/dogestry/contents/{+path}","compare_url":"https://api.github.com/repos/sbecker/dogestry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbecker/dogestry/merges","archive_url":"https://api.github.com/repos/sbecker/dogestry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbecker/dogestry/downloads","issues_url":"https://api.github.com/repos/sbecker/dogestry/issues{/number}","pulls_url":"https://api.github.com/repos/sbecker/dogestry/pulls{/number}","milestones_url":"https://api.github.com/repos/sbecker/dogestry/milestones{/number}","notifications_url":"https://api.github.com/repos/sbecker/dogestry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbecker/dogestry/labels{/name}","releases_url":"https://api.github.com/repos/sbecker/dogestry/releases{/id}","created_at":"2015-07-23T23:10:14Z","updated_at":"2015-07-23T23:10:14Z","pushed_at":"2015-07-24T15:22:09Z","git_url":"git://github.com/sbecker/dogestry.git","ssh_url":"git@github.com:sbecker/dogestry.git","clone_url":"https://github.com/sbecker/dogestry.git","svn_url":"https://github.com/sbecker/dogestry","homepage":null,"size":1372,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"dogestry:master","ref":"master","sha":"03919a088eb06b5d8683ca6d82929fb90322bc98","user":{"login":"dogestry","id":9311192,"avatar_url":"https://avatars.githubusercontent.com/u/9311192?v=3","gravatar_id":"","url":"https://api.github.com/users/dogestry","html_url":"https://github.com/dogestry","followers_url":"https://api.github.com/users/dogestry/followers","following_url":"https://api.github.com/users/dogestry/following{/other_user}","gists_url":"https://api.github.com/users/dogestry/gists{/gist_id}","starred_url":"https://api.github.com/users/dogestry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogestry/subscriptions","organizations_url":"https://api.github.com/users/dogestry/orgs","repos_url":"https://api.github.com/users/dogestry/repos","events_url":"https://api.github.com/users/dogestry/events{/privacy}","received_events_url":"https://api.github.com/users/dogestry/received_events","type":"Organization","site_admin":false},"repo":{"id":27846206,"name":"dogestry","full_name":"dogestry/dogestry","owner":{"login":"dogestry","id":9311192,"avatar_url":"https://avatars.githubusercontent.com/u/9311192?v=3","gravatar_id":"","url":"https://api.github.com/users/dogestry","html_url":"https://github.com/dogestry","followers_url":"https://api.github.com/users/dogestry/followers","following_url":"https://api.github.com/users/dogestry/following{/other_user}","gists_url":"https://api.github.com/users/dogestry/gists{/gist_id}","starred_url":"https://api.github.com/users/dogestry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogestry/subscriptions","organizations_url":"https://api.github.com/users/dogestry/orgs","repos_url":"https://api.github.com/users/dogestry/repos","events_url":"https://api.github.com/users/dogestry/events{/privacy}","received_events_url":"https://api.github.com/users/dogestry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dogestry/dogestry","description":"Use Amazon S3 as your Docker registry","fork":false,"url":"https://api.github.com/repos/dogestry/dogestry","forks_url":"https://api.github.com/repos/dogestry/dogestry/forks","keys_url":"https://api.github.com/repos/dogestry/dogestry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dogestry/dogestry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dogestry/dogestry/teams","hooks_url":"https://api.github.com/repos/dogestry/dogestry/hooks","issue_events_url":"https://api.github.com/repos/dogestry/dogestry/issues/events{/number}","events_url":"https://api.github.com/repos/dogestry/dogestry/events","assignees_url":"https://api.github.com/repos/dogestry/dogestry/assignees{/user}","branches_url":"https://api.github.com/repos/dogestry/dogestry/branches{/branch}","tags_url":"https://api.github.com/repos/dogestry/dogestry/tags","blobs_url":"https://api.github.com/repos/dogestry/dogestry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dogestry/dogestry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dogestry/dogestry/git/refs{/sha}","trees_url":"https://api.github.com/repos/dogestry/dogestry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dogestry/dogestry/statuses/{sha}","languages_url":"https://api.github.com/repos/dogestry/dogestry/languages","stargazers_url":"https://api.github.com/repos/dogestry/dogestry/stargazers","contributors_url":"https://api.github.com/repos/dogestry/dogestry/contributors","subscribers_url":"https://api.github.com/repos/dogestry/dogestry/subscribers","subscription_url":"https://api.github.com/repos/dogestry/dogestry/subscription","commits_url":"https://api.github.com/repos/dogestry/dogestry/commits{/sha}","git_commits_url":"https://api.github.com/repos/dogestry/dogestry/git/commits{/sha}","comments_url":"https://api.github.com/repos/dogestry/dogestry/comments{/number}","issue_comment_url":"https://api.github.com/repos/dogestry/dogestry/issues/comments{/number}","contents_url":"https://api.github.com/repos/dogestry/dogestry/contents/{+path}","compare_url":"https://api.github.com/repos/dogestry/dogestry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dogestry/dogestry/merges","archive_url":"https://api.github.com/repos/dogestry/dogestry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dogestry/dogestry/downloads","issues_url":"https://api.github.com/repos/dogestry/dogestry/issues{/number}","pulls_url":"https://api.github.com/repos/dogestry/dogestry/pulls{/number}","milestones_url":"https://api.github.com/repos/dogestry/dogestry/milestones{/number}","notifications_url":"https://api.github.com/repos/dogestry/dogestry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dogestry/dogestry/labels{/name}","releases_url":"https://api.github.com/repos/dogestry/dogestry/releases{/id}","created_at":"2014-12-11T00:17:14Z","updated_at":"2015-07-24T07:45:41Z","pushed_at":"2015-07-24T22:16:55Z","git_url":"git://github.com/dogestry/dogestry.git","ssh_url":"git@github.com:dogestry/dogestry.git","clone_url":"https://github.com/dogestry/dogestry.git","svn_url":"https://github.com/dogestry/dogestry","homepage":null,"size":1372,"stargazers_count":257,"watchers_count":257,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":8,"forks":14,"open_issues":8,"watchers":257,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dogestry/dogestry/pulls/69"},"html":{"href":"https://github.com/dogestry/dogestry/pull/69"},"issue":{"href":"https://api.github.com/repos/dogestry/dogestry/issues/69"},"comments":{"href":"https://api.github.com/repos/dogestry/dogestry/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/dogestry/dogestry/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/dogestry/dogestry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dogestry/dogestry/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/dogestry/dogestry/statuses/fa5ca1b86e949985a089734503a78bea27a3ff86"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"didip","id":72918,"avatar_url":"https://avatars.githubusercontent.com/u/72918?v=3","gravatar_id":"","url":"https://api.github.com/users/didip","html_url":"https://github.com/didip","followers_url":"https://api.github.com/users/didip/followers","following_url":"https://api.github.com/users/didip/following{/other_user}","gists_url":"https://api.github.com/users/didip/gists{/gist_id}","starred_url":"https://api.github.com/users/didip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didip/subscriptions","organizations_url":"https://api.github.com/users/didip/orgs","repos_url":"https://api.github.com/users/didip/repos","events_url":"https://api.github.com/users/didip/events{/privacy}","received_events_url":"https://api.github.com/users/didip/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":15,"deletions":1,"changed_files":2}}