{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/4396","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/4396/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/4396/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/4396/events","html_url":"https://github.com/hashicorp/terraform/pull/4396","id":123106974,"number":4396,"title":"New resource: aws_ami_description - lookup AMI via DescribeImages","user":{"login":"vancluever","id":10704423,"avatar_url":"https://avatars.githubusercontent.com/u/10704423?v=3","gravatar_id":"","url":"https://api.github.com/users/vancluever","html_url":"https://github.com/vancluever","followers_url":"https://api.github.com/users/vancluever/followers","following_url":"https://api.github.com/users/vancluever/following{/other_user}","gists_url":"https://api.github.com/users/vancluever/gists{/gist_id}","starred_url":"https://api.github.com/users/vancluever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vancluever/subscriptions","organizations_url":"https://api.github.com/users/vancluever/orgs","repos_url":"https://api.github.com/users/vancluever/repos","events_url":"https://api.github.com/users/vancluever/events{/privacy}","received_events_url":"https://api.github.com/users/vancluever/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-19T19:46:42Z","updated_at":"2015-12-22T20:50:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/4396","html_url":"https://github.com/hashicorp/terraform/pull/4396","diff_url":"https://github.com/hashicorp/terraform/pull/4396.diff","patch_url":"https://github.com/hashicorp/terraform/pull/4396.patch"},"body":"I made this resource because I wanted an easy way to look up the latest AWS NAT images. Of course, with the advent of the new NAT gateway and the respective resource in Terraform (which I just found out about today!), this is a bit moot, but I'm hoping this will find other use cases. I myself will be using this to simplify some of my build pipelines that require a pre-built instance, produced by things like packer.\r\n\r\nCheck it out, any questions or comments let me know. Docs are included in this PR, of course. Tests cover looking up a NAT instance, a Windows instance, and a Ubuntu instance store instance.\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/166726513","html_url":"https://github.com/hashicorp/terraform/pull/4396#issuecomment-166726513","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/4396","id":166726513,"user":{"login":"vancluever","id":10704423,"avatar_url":"https://avatars.githubusercontent.com/u/10704423?v=3","gravatar_id":"","url":"https://api.github.com/users/vancluever","html_url":"https://github.com/vancluever","followers_url":"https://api.github.com/users/vancluever/followers","following_url":"https://api.github.com/users/vancluever/following{/other_user}","gists_url":"https://api.github.com/users/vancluever/gists{/gist_id}","starred_url":"https://api.github.com/users/vancluever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vancluever/subscriptions","organizations_url":"https://api.github.com/users/vancluever/orgs","repos_url":"https://api.github.com/users/vancluever/repos","events_url":"https://api.github.com/users/vancluever/events{/privacy}","received_events_url":"https://api.github.com/users/vancluever/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T20:50:50Z","updated_at":"2015-12-22T20:50:50Z","body":"Updated the PR with the `executable_users` and `owners` parameters, this allows further filtering based on API/SDK parameters and more usefully allows one to search on their own images (using the `self` keyword).\r\n\r\n`executable_users` is a little tough to test as the test will fail if you don't have any images, and otherwise you are searching on arbitrary account IDs. I did have a test in for it before pushing, but it was failing due to no results, so at least it's working!\r\n\r\nAlso made a few corrections to the docs (filter values were not lists when they should have been)."}}