{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2756","repository_url":"https://api.github.com/repos/mitchellh/packer","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2756/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2756/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2756/events","html_url":"https://github.com/mitchellh/packer/issues/2756","id":107333399,"number":2756,"title":"Select latest source AMI","user":{"login":"JamieCressey","id":6462914,"avatar_url":"https://avatars.githubusercontent.com/u/6462914?v=3","gravatar_id":"","url":"https://api.github.com/users/JamieCressey","html_url":"https://github.com/JamieCressey","followers_url":"https://api.github.com/users/JamieCressey/followers","following_url":"https://api.github.com/users/JamieCressey/following{/other_user}","gists_url":"https://api.github.com/users/JamieCressey/gists{/gist_id}","starred_url":"https://api.github.com/users/JamieCressey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamieCressey/subscriptions","organizations_url":"https://api.github.com/users/JamieCressey/orgs","repos_url":"https://api.github.com/users/JamieCressey/repos","events_url":"https://api.github.com/users/JamieCressey/events{/privacy}","received_events_url":"https://api.github.com/users/JamieCressey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/amazon","name":"builder/amazon","color":"d4c5f9"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-19T13:27:11Z","updated_at":"2016-06-23T20:29:35Z","closed_at":null,"body":"Is there a way to use the latest available AMI (filtered by owner/AMI name/region etc) to be used as the source image? E.g. `\"Use the latest Ubuntu 14.04 AMI with an instance type of hvm:ebs-ssd provided by Canonical from the EU-West region\"`\r\n\r\nMSOpenTech currently have this functionality for when building Azure images, and as I look to automate our cloud OS images it would be ideal if the source AMI could be dynamically chosen rather than hard coded into the template/require an env var.\r\n\r\nThe AWS SDK supports such filtering, although my GO knowledge is a little too limited to provide a suitable PR, sorry!"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/228173832","html_url":"https://github.com/mitchellh/packer/issues/2756#issuecomment-228173832","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/2756","id":228173832,"user":{"login":"CpuID","id":916201,"avatar_url":"https://avatars.githubusercontent.com/u/916201?v=3","gravatar_id":"","url":"https://api.github.com/users/CpuID","html_url":"https://github.com/CpuID","followers_url":"https://api.github.com/users/CpuID/followers","following_url":"https://api.github.com/users/CpuID/following{/other_user}","gists_url":"https://api.github.com/users/CpuID/gists{/gist_id}","starred_url":"https://api.github.com/users/CpuID/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CpuID/subscriptions","organizations_url":"https://api.github.com/users/CpuID/orgs","repos_url":"https://api.github.com/users/CpuID/repos","events_url":"https://api.github.com/users/CpuID/events{/privacy}","received_events_url":"https://api.github.com/users/CpuID/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T20:29:35Z","updated_at":"2016-06-23T20:29:35Z","body":"@csoutherland +1 took the same approach here (parsing the CSVs on `cloud-images.ubuntu.com`), has been quite reliable (minimal format changes upstream)."}}
{"actor":{"display_login":"CpuID"}}