{"action":"closed","number":140,"pull_request":{"url":"https://api.github.com/repos/saltstack/salt-contrib/pulls/140","id":44571994,"html_url":"https://github.com/saltstack/salt-contrib/pull/140","diff_url":"https://github.com/saltstack/salt-contrib/pull/140.diff","patch_url":"https://github.com/saltstack/salt-contrib/pull/140.patch","issue_url":"https://api.github.com/repos/saltstack/salt-contrib/issues/140","number":140,"state":"closed","locked":false,"title":"#123: Fixed the ec2:public_key grain.  ","user":{"login":"saravanakumar-periyasamy","id":5489001,"avatar_url":"https://avatars.githubusercontent.com/u/5489001?v=3","gravatar_id":"","url":"https://api.github.com/users/saravanakumar-periyasamy","html_url":"https://github.com/saravanakumar-periyasamy","followers_url":"https://api.github.com/users/saravanakumar-periyasamy/followers","following_url":"https://api.github.com/users/saravanakumar-periyasamy/following{/other_user}","gists_url":"https://api.github.com/users/saravanakumar-periyasamy/gists{/gist_id}","starred_url":"https://api.github.com/users/saravanakumar-periyasamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saravanakumar-periyasamy/subscriptions","organizations_url":"https://api.github.com/users/saravanakumar-periyasamy/orgs","repos_url":"https://api.github.com/users/saravanakumar-periyasamy/repos","events_url":"https://api.github.com/users/saravanakumar-periyasamy/events{/privacy}","received_events_url":"https://api.github.com/users/saravanakumar-periyasamy/received_events","type":"User","site_admin":false},"body":"Public keys are little different than other metadata - here's the AWS documentation on how to retrieve the public keys - http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html\r\n\r\n\r\n\r\nThis example gets the list of available public keys.\r\n\r\n```bash\r\n$ curl http://169.254.169.254/latest/meta-data/public-keys/\r\n\r\n0=my-public-key\r\n```\r\n\r\nThis example shows the formats in which public key 0 is available.\r\n\r\n```bash\r\n$ curl http://169.254.169.254/latest/meta-data/public-keys/0\r\n\r\nopenssh-key\r\n```\r\nThis example gets public key 0 (in the OpenSSH key format).\r\n\r\n```bash\r\n$ curl http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key\r\n\r\nssh-rsa MIICiTCCAfICCQD6m7oRw0uXOjANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMC\r\nVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6\r\nb24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAd\r\nBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wHhcNMTEwNDI1MjA0NTIxWhcN\r\nMTIwNDI0MjA0NTIxWjCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYD\r\nVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25z\r\nb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFt\r\nYXpvbi5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMaK0dn+a4GmWIWJ\r\n21uUSfwfEvySWtC2XADZ4nB+BLYgVIk60CpiwsZ3G93vUEIO3IyNoH/f0wYK8m9T\r\nrDHudUZg3qX4waLG5M43q7Wgc/MbQITxOUSQv7c7ugFFDzQGBzZswY6786m86gpE\r\nIbb3OhjZnzcvQAaRHhdlQWIMm2nrAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAtCu4\r\nnUhVVxYUntneD9+h8Mg9q6q+auNKyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0Fkb\r\nFFBjvSfpJIlJ00zbhNYS5f6GuoEDmFJl0ZxBHjJnyp378OD8uTs7fLvjx79LjSTb\r\nNYiytVbZPQUQ5Yaxu2jXnimvw3rrszlaEXAMPLE my-public-key\r\n```","created_at":"2015-09-09T16:32:00Z","updated_at":"2015-09-09T20:05:44Z","closed_at":"2015-09-09T20:05:44Z","merged_at":"2015-09-09T20:05:44Z","merge_commit_sha":"63c557bfbc67a854d4f3e23519bfe77ca280f1a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/saltstack/salt-contrib/pulls/140/commits","review_comments_url":"https://api.github.com/repos/saltstack/salt-contrib/pulls/140/comments","review_comment_url":"https://api.github.com/repos/saltstack/salt-contrib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/saltstack/salt-contrib/issues/140/comments","statuses_url":"https://api.github.com/repos/saltstack/salt-contrib/statuses/45a1a11844ad74cefcd2f0445852a1bb17b7e0f2","head":{"label":"saravanakumar-periyasamy:master","ref":"master","sha":"45a1a11844ad74cefcd2f0445852a1bb17b7e0f2","user":{"login":"saravanakumar-periyasamy","id":5489001,"avatar_url":"https://avatars.githubusercontent.com/u/5489001?v=3","gravatar_id":"","url":"https://api.github.com/users/saravanakumar-periyasamy","html_url":"https://github.com/saravanakumar-periyasamy","followers_url":"https://api.github.com/users/saravanakumar-periyasamy/followers","following_url":"https://api.github.com/users/saravanakumar-periyasamy/following{/other_user}","gists_url":"https://api.github.com/users/saravanakumar-periyasamy/gists{/gist_id}","starred_url":"https://api.github.com/users/saravanakumar-periyasamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saravanakumar-periyasamy/subscriptions","organizations_url":"https://api.github.com/users/saravanakumar-periyasamy/orgs","repos_url":"https://api.github.com/users/saravanakumar-periyasamy/repos","events_url":"https://api.github.com/users/saravanakumar-periyasamy/events{/privacy}","received_events_url":"https://api.github.com/users/saravanakumar-periyasamy/received_events","type":"User","site_admin":false},"repo":{"id":42190552,"name":"salt-contrib","full_name":"saravanakumar-periyasamy/salt-contrib","owner":{"login":"saravanakumar-periyasamy","id":5489001,"avatar_url":"https://avatars.githubusercontent.com/u/5489001?v=3","gravatar_id":"","url":"https://api.github.com/users/saravanakumar-periyasamy","html_url":"https://github.com/saravanakumar-periyasamy","followers_url":"https://api.github.com/users/saravanakumar-periyasamy/followers","following_url":"https://api.github.com/users/saravanakumar-periyasamy/following{/other_user}","gists_url":"https://api.github.com/users/saravanakumar-periyasamy/gists{/gist_id}","starred_url":"https://api.github.com/users/saravanakumar-periyasamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saravanakumar-periyasamy/subscriptions","organizations_url":"https://api.github.com/users/saravanakumar-periyasamy/orgs","repos_url":"https://api.github.com/users/saravanakumar-periyasamy/repos","events_url":"https://api.github.com/users/saravanakumar-periyasamy/events{/privacy}","received_events_url":"https://api.github.com/users/saravanakumar-periyasamy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saravanakumar-periyasamy/salt-contrib","description":"Salt Module Contributions","fork":true,"url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib","forks_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/forks","keys_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/teams","hooks_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/hooks","issue_events_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/issues/events{/number}","events_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/events","assignees_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/assignees{/user}","branches_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/branches{/branch}","tags_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/tags","blobs_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/languages","stargazers_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/stargazers","contributors_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/contributors","subscribers_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/subscribers","subscription_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/subscription","commits_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/contents/{+path}","compare_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/merges","archive_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/downloads","issues_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/issues{/number}","pulls_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/labels{/name}","releases_url":"https://api.github.com/repos/saravanakumar-periyasamy/salt-contrib/releases{/id}","created_at":"2015-09-09T16:27:13Z","updated_at":"2015-09-09T16:27:14Z","pushed_at":"2015-09-09T16:30:52Z","git_url":"git://github.com/saravanakumar-periyasamy/salt-contrib.git","ssh_url":"git@github.com:saravanakumar-periyasamy/salt-contrib.git","clone_url":"https://github.com/saravanakumar-periyasamy/salt-contrib.git","svn_url":"https://github.com/saravanakumar-periyasamy/salt-contrib","homepage":"http://saltstack.org","size":1098,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"saltstack:master","ref":"master","sha":"27e1ac01126b7ff6695217d4c520819092f9d37a","user":{"login":"saltstack","id":1147473,"avatar_url":"https://avatars.githubusercontent.com/u/1147473?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack","html_url":"https://github.com/saltstack","followers_url":"https://api.github.com/users/saltstack/followers","following_url":"https://api.github.com/users/saltstack/following{/other_user}","gists_url":"https://api.github.com/users/saltstack/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack/subscriptions","organizations_url":"https://api.github.com/users/saltstack/orgs","repos_url":"https://api.github.com/users/saltstack/repos","events_url":"https://api.github.com/users/saltstack/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack/received_events","type":"Organization","site_admin":false},"repo":{"id":2817785,"name":"salt-contrib","full_name":"saltstack/salt-contrib","owner":{"login":"saltstack","id":1147473,"avatar_url":"https://avatars.githubusercontent.com/u/1147473?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack","html_url":"https://github.com/saltstack","followers_url":"https://api.github.com/users/saltstack/followers","following_url":"https://api.github.com/users/saltstack/following{/other_user}","gists_url":"https://api.github.com/users/saltstack/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack/subscriptions","organizations_url":"https://api.github.com/users/saltstack/orgs","repos_url":"https://api.github.com/users/saltstack/repos","events_url":"https://api.github.com/users/saltstack/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/saltstack/salt-contrib","description":"Salt Module Contributions","fork":false,"url":"https://api.github.com/repos/saltstack/salt-contrib","forks_url":"https://api.github.com/repos/saltstack/salt-contrib/forks","keys_url":"https://api.github.com/repos/saltstack/salt-contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saltstack/salt-contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saltstack/salt-contrib/teams","hooks_url":"https://api.github.com/repos/saltstack/salt-contrib/hooks","issue_events_url":"https://api.github.com/repos/saltstack/salt-contrib/issues/events{/number}","events_url":"https://api.github.com/repos/saltstack/salt-contrib/events","assignees_url":"https://api.github.com/repos/saltstack/salt-contrib/assignees{/user}","branches_url":"https://api.github.com/repos/saltstack/salt-contrib/branches{/branch}","tags_url":"https://api.github.com/repos/saltstack/salt-contrib/tags","blobs_url":"https://api.github.com/repos/saltstack/salt-contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saltstack/salt-contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saltstack/salt-contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/saltstack/salt-contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saltstack/salt-contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/saltstack/salt-contrib/languages","stargazers_url":"https://api.github.com/repos/saltstack/salt-contrib/stargazers","contributors_url":"https://api.github.com/repos/saltstack/salt-contrib/contributors","subscribers_url":"https://api.github.com/repos/saltstack/salt-contrib/subscribers","subscription_url":"https://api.github.com/repos/saltstack/salt-contrib/subscription","commits_url":"https://api.github.com/repos/saltstack/salt-contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/saltstack/salt-contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/saltstack/salt-contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/saltstack/salt-contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/saltstack/salt-contrib/contents/{+path}","compare_url":"https://api.github.com/repos/saltstack/salt-contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saltstack/salt-contrib/merges","archive_url":"https://api.github.com/repos/saltstack/salt-contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saltstack/salt-contrib/downloads","issues_url":"https://api.github.com/repos/saltstack/salt-contrib/issues{/number}","pulls_url":"https://api.github.com/repos/saltstack/salt-contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/saltstack/salt-contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/saltstack/salt-contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saltstack/salt-contrib/labels{/name}","releases_url":"https://api.github.com/repos/saltstack/salt-contrib/releases{/id}","created_at":"2011-11-21T05:24:03Z","updated_at":"2015-09-02T15:47:30Z","pushed_at":"2015-09-09T20:05:44Z","git_url":"git://github.com/saltstack/salt-contrib.git","ssh_url":"git@github.com:saltstack/salt-contrib.git","clone_url":"https://github.com/saltstack/salt-contrib.git","svn_url":"https://github.com/saltstack/salt-contrib","homepage":"http://saltstack.org","size":1098,"stargazers_count":105,"watchers_count":105,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":15,"forks":107,"open_issues":15,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/saltstack/salt-contrib/pulls/140"},"html":{"href":"https://github.com/saltstack/salt-contrib/pull/140"},"issue":{"href":"https://api.github.com/repos/saltstack/salt-contrib/issues/140"},"comments":{"href":"https://api.github.com/repos/saltstack/salt-contrib/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/saltstack/salt-contrib/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/saltstack/salt-contrib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/saltstack/salt-contrib/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/saltstack/salt-contrib/statuses/45a1a11844ad74cefcd2f0445852a1bb17b7e0f2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"cro","id":83323,"avatar_url":"https://avatars.githubusercontent.com/u/83323?v=3","gravatar_id":"","url":"https://api.github.com/users/cro","html_url":"https://github.com/cro","followers_url":"https://api.github.com/users/cro/followers","following_url":"https://api.github.com/users/cro/following{/other_user}","gists_url":"https://api.github.com/users/cro/gists{/gist_id}","starred_url":"https://api.github.com/users/cro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cro/subscriptions","organizations_url":"https://api.github.com/users/cro/orgs","repos_url":"https://api.github.com/users/cro/repos","events_url":"https://api.github.com/users/cro/events{/privacy}","received_events_url":"https://api.github.com/users/cro/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}