{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2028","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2028/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2028/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2028/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/2028","id":148198842,"number":2028,"title":"Add ec2_snapshot_facts module to find snapshots","user":{"login":"alxnov","id":680802,"avatar_url":"https://avatars.githubusercontent.com/u/680802?v=3","gravatar_id":"","url":"https://api.github.com/users/alxnov","html_url":"https://github.com/alxnov","followers_url":"https://api.github.com/users/alxnov/followers","following_url":"https://api.github.com/users/alxnov/following{/other_user}","gists_url":"https://api.github.com/users/alxnov/gists{/gist_id}","starred_url":"https://api.github.com/users/alxnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxnov/subscriptions","organizations_url":"https://api.github.com/users/alxnov/orgs","repos_url":"https://api.github.com/users/alxnov/repos","events_url":"https://api.github.com/users/alxnov/events{/privacy}","received_events_url":"https://api.github.com/users/alxnov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/needs_revision","name":"needs_revision","color":"eb6420"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/new_plugin","name":"new_plugin","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-13T22:17:02Z","updated_at":"2016-04-15T03:18:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/2028","html_url":"https://github.com/ansible/ansible-modules-extras/pull/2028","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/2028.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/2028.patch"},"body":"##### ISSUE TYPE\r\n\r\n - Feature Pull Request\r\n\r\n##### COMPONENT NAME\r\nec2_snapshot_facs\r\n\r\n##### ANSIBLE VERSION\r\nShould not have any version restrictions\r\n```\r\nansible 1.9.5\r\n  configured module search path = None\r\n```\r\n\r\n##### SUMMARY\r\nCurrently, there doesn't seem to be a module to be able to search snapshots by useful attributes such as owners, tags, or source volumeId.\r\nUsage:\r\n```\r\n- ec2_snapshot_facts:\r\n    owner: [\"self\", \"2222222222\"]\r\n    volume_id: \"vol-aaaaaaaaaa\"\r\n  register: reg\r\n```\r\nOutput:\r\n```\r\nok: [my-redacted-server] => {\r\n    \"var\": {\r\n        \"reg\": {\r\n            \"changed\": false, \r\n            \"invocation\": {\r\n                \"module_args\": \"\", \r\n                \"module_complex_args\": {\r\n                    \"owner\": [\"self\", \"2222222222\"],\r\n                    \"volume_id\": \"vol-aaaaaaaaaa\"\r\n                }, \r\n                \"module_name\": \"ec2_snapshot_facts\"\r\n            }, \r\n            \"results\": [\r\n                {\r\n                    \"description\": \"Fancy Description\", \r\n                    \"encrypted\": true, \r\n                    \"id\": \"snap-111111111\", \r\n                    \"owner_id\": \"111111111111\", \r\n                    \"progress\": \"100%\", \r\n                    \"region\": \"RegionInfo:us-west-1\", \r\n                    \"start_time\": \"2016-03-00T00:00:00.000Z\", \r\n                    \"status\": \"completed\", \r\n                    \"tags\": {\r\n                       \"MyGreatTag\": \"IsVeryGreat\"\r\n                    }, \r\n                    \"volume_id\": \"vol-aaaaaaaaaa\", \r\n                    \"volume_size\": 42\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/210268229","html_url":"https://github.com/ansible/ansible-modules-extras/pull/2028#issuecomment-210268229","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2028","id":210268229,"user":{"login":"willthames","id":391807,"avatar_url":"https://avatars.githubusercontent.com/u/391807?v=3","gravatar_id":"","url":"https://api.github.com/users/willthames","html_url":"https://github.com/willthames","followers_url":"https://api.github.com/users/willthames/followers","following_url":"https://api.github.com/users/willthames/following{/other_user}","gists_url":"https://api.github.com/users/willthames/gists{/gist_id}","starred_url":"https://api.github.com/users/willthames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willthames/subscriptions","organizations_url":"https://api.github.com/users/willthames/orgs","repos_url":"https://api.github.com/users/willthames/repos","events_url":"https://api.github.com/users/willthames/events{/privacy}","received_events_url":"https://api.github.com/users/willthames/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T03:18:34Z","updated_at":"2016-04-15T03:18:34Z","body":"Worth comparing to #1088"}}