{"action":"opened","number":46028,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/46028","id":217437127,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NDM3MTI3","html_url":"https://github.com/ansible/ansible/pull/46028","diff_url":"https://github.com/ansible/ansible/pull/46028.diff","patch_url":"https://github.com/ansible/ansible/pull/46028.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/46028","number":46028,"state":"open","locked":false,"title":"Add AWS IAM and AWS EC2 auth method to hashi_vault lookup","user":{"login":"ChingTsai","id":17590361,"node_id":"MDQ6VXNlcjE3NTkwMzYx","avatar_url":"https://avatars3.githubusercontent.com/u/17590361?v=4","gravatar_id":"","url":"https://api.github.com/users/ChingTsai","html_url":"https://github.com/ChingTsai","followers_url":"https://api.github.com/users/ChingTsai/followers","following_url":"https://api.github.com/users/ChingTsai/following{/other_user}","gists_url":"https://api.github.com/users/ChingTsai/gists{/gist_id}","starred_url":"https://api.github.com/users/ChingTsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChingTsai/subscriptions","organizations_url":"https://api.github.com/users/ChingTsai/orgs","repos_url":"https://api.github.com/users/ChingTsai/repos","events_url":"https://api.github.com/users/ChingTsai/events{/privacy}","received_events_url":"https://api.github.com/users/ChingTsai/received_events","type":"User","site_admin":false},"body":"##### SUMMARY\r\n<!--- Describe the change below, including rationale and design decisions -->\r\n\r\nProvide Vault AWS Auth method to the lookup.\r\n\r\nhttps://www.vaultproject.io/docs/auth/aws.html\r\n\r\n- AWS IAM Auth \r\n\r\nUsage: \r\n\r\n`{{ lookup('hashi_vault', 'secret=secret/hello:value auth_method=aws_iam access_key=access secret_key=secret role=myrole url=http://myvault:8200')}}`\r\n\r\nYou can skip access_key and secret_key if you set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables.\r\n\r\n- AWS EC2 Auth \r\n\r\nUsage: \r\n\r\n   `{{ lookup('hashi_vault', 'secret=secret/hello:value auth_method=aws_ec2 nonce=my_nonce role=myrole url=http://myvault:8200')}}`\r\n\r\nLookup will automatically retrieve the instance identity document from instance metadata.\r\n\r\n<!--- HINT: Include \"Fixes #nnn\" if you are fixing an existing issue -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest -->\r\n- Feature Pull Request\r\n\r\n##### COMPONENT NAME\r\n<!--- Write the short name of the module, plugin, task or feature below -->\r\n`lib/ansible/plugins/lookup/hashi_vault.py`\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes -->\r\n```paste below\r\nansible 2.8.0.dev0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = ['/home/ubuntu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /home/ubuntu/test/env/lib/python3.5/site-packages/ansible\r\n  executable location = /home/ubuntu/test/env/bin/ansible\r\n  python version = 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]\r\n```\r\n\r\n##### ADDITIONAL INFORMATION\r\n<!--- Include additional information to help people understand the change here -->\r\n<!--- A step-by-step reproduction of the problem is helpful if there is no related issue -->\r\n\r\n<!--- Paste verbatim command output below, e.g. before and after your change -->\r\nN/A\r\n","created_at":"2018-09-22T03:40:06Z","updated_at":"2018-09-22T03:40:06Z","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/ansible/ansible/pulls/46028/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/46028/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/46028/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/26179e65564845ab413cacf4618f70690bf383d4","head":{"label":"ChingTsai:devel","ref":"devel","sha":"26179e65564845ab413cacf4618f70690bf383d4","user":{"login":"ChingTsai","id":17590361,"node_id":"MDQ6VXNlcjE3NTkwMzYx","avatar_url":"https://avatars3.githubusercontent.com/u/17590361?v=4","gravatar_id":"","url":"https://api.github.com/users/ChingTsai","html_url":"https://github.com/ChingTsai","followers_url":"https://api.github.com/users/ChingTsai/followers","following_url":"https://api.github.com/users/ChingTsai/following{/other_user}","gists_url":"https://api.github.com/users/ChingTsai/gists{/gist_id}","starred_url":"https://api.github.com/users/ChingTsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChingTsai/subscriptions","organizations_url":"https://api.github.com/users/ChingTsai/orgs","repos_url":"https://api.github.com/users/ChingTsai/repos","events_url":"https://api.github.com/users/ChingTsai/events{/privacy}","received_events_url":"https://api.github.com/users/ChingTsai/received_events","type":"User","site_admin":false},"repo":{"id":148725302,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg3MjUzMDI=","name":"ansible","full_name":"ChingTsai/ansible","private":false,"owner":{"login":"ChingTsai","id":17590361,"node_id":"MDQ6VXNlcjE3NTkwMzYx","avatar_url":"https://avatars3.githubusercontent.com/u/17590361?v=4","gravatar_id":"","url":"https://api.github.com/users/ChingTsai","html_url":"https://github.com/ChingTsai","followers_url":"https://api.github.com/users/ChingTsai/followers","following_url":"https://api.github.com/users/ChingTsai/following{/other_user}","gists_url":"https://api.github.com/users/ChingTsai/gists{/gist_id}","starred_url":"https://api.github.com/users/ChingTsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChingTsai/subscriptions","organizations_url":"https://api.github.com/users/ChingTsai/orgs","repos_url":"https://api.github.com/users/ChingTsai/repos","events_url":"https://api.github.com/users/ChingTsai/events{/privacy}","received_events_url":"https://api.github.com/users/ChingTsai/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ChingTsai/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications — automate in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com/ansible/","fork":true,"url":"https://api.github.com/repos/ChingTsai/ansible","forks_url":"https://api.github.com/repos/ChingTsai/ansible/forks","keys_url":"https://api.github.com/repos/ChingTsai/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChingTsai/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChingTsai/ansible/teams","hooks_url":"https://api.github.com/repos/ChingTsai/ansible/hooks","issue_events_url":"https://api.github.com/repos/ChingTsai/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ChingTsai/ansible/events","assignees_url":"https://api.github.com/repos/ChingTsai/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ChingTsai/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ChingTsai/ansible/tags","blobs_url":"https://api.github.com/repos/ChingTsai/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChingTsai/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChingTsai/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChingTsai/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChingTsai/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ChingTsai/ansible/languages","stargazers_url":"https://api.github.com/repos/ChingTsai/ansible/stargazers","contributors_url":"https://api.github.com/repos/ChingTsai/ansible/contributors","subscribers_url":"https://api.github.com/repos/ChingTsai/ansible/subscribers","subscription_url":"https://api.github.com/repos/ChingTsai/ansible/subscription","commits_url":"https://api.github.com/repos/ChingTsai/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChingTsai/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChingTsai/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChingTsai/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChingTsai/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ChingTsai/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChingTsai/ansible/merges","archive_url":"https://api.github.com/repos/ChingTsai/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChingTsai/ansible/downloads","issues_url":"https://api.github.com/repos/ChingTsai/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ChingTsai/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ChingTsai/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ChingTsai/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChingTsai/ansible/labels{/name}","releases_url":"https://api.github.com/repos/ChingTsai/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/ChingTsai/ansible/deployments","created_at":"2018-09-14T02:35:29Z","updated_at":"2018-09-22T03:19:28Z","pushed_at":"2018-09-22T03:19:26Z","git_url":"git://github.com/ChingTsai/ansible.git","ssh_url":"git@github.com:ChingTsai/ansible.git","clone_url":"https://github.com/ChingTsai/ansible.git","svn_url":"https://github.com/ChingTsai/ansible","homepage":"https://www.ansible.com/","size":132954,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"54937ba7848c3d10b31b85c46e3e8d41c98c5519","user":{"login":"ansible","id":1507452,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MDc0NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1507452?v=4","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":3638964,"node_id":"MDEwOlJlcG9zaXRvcnkzNjM4OTY0","name":"ansible","full_name":"ansible/ansible","private":false,"owner":{"login":"ansible","id":1507452,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MDc0NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1507452?v=4","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ansible/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications — automate in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com/ansible/","fork":false,"url":"https://api.github.com/repos/ansible/ansible","forks_url":"https://api.github.com/repos/ansible/ansible/forks","keys_url":"https://api.github.com/repos/ansible/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible/teams","hooks_url":"https://api.github.com/repos/ansible/ansible/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible/events","assignees_url":"https://api.github.com/repos/ansible/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible/tags","blobs_url":"https://api.github.com/repos/ansible/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible/subscription","commits_url":"https://api.github.com/repos/ansible/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible/merges","archive_url":"https://api.github.com/repos/ansible/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible/downloads","issues_url":"https://api.github.com/repos/ansible/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible/deployments","created_at":"2012-03-06T14:58:02Z","updated_at":"2018-09-22T03:22:17Z","pushed_at":"2018-09-22T03:11:39Z","git_url":"git://github.com/ansible/ansible.git","ssh_url":"git@github.com:ansible/ansible.git","clone_url":"https://github.com/ansible/ansible.git","svn_url":"https://github.com/ansible/ansible","homepage":"https://www.ansible.com/","size":141581,"stargazers_count":32665,"watchers_count":32665,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12871,"mirror_url":null,"archived":false,"open_issues_count":5424,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":12871,"open_issues":5424,"watchers":32665,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/46028"},"html":{"href":"https://github.com/ansible/ansible/pull/46028"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/46028"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/46028/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/46028/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/46028/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/26179e65564845ab413cacf4618f70690bf383d4"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":78,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"ChingTsai"}}