{"action":"opened","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2644","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2644/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2644/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2644/events","html_url":"https://github.com/mitchellh/packer/issues/2644","id":102211070,"number":2644,"title":"Determine AMI ID during packer build","user":{"login":"gamename","id":42153,"avatar_url":"https://avatars.githubusercontent.com/u/42153?v=3","gravatar_id":"","url":"https://api.github.com/users/gamename","html_url":"https://github.com/gamename","followers_url":"https://api.github.com/users/gamename/followers","following_url":"https://api.github.com/users/gamename/following{/other_user}","gists_url":"https://api.github.com/users/gamename/gists{/gist_id}","starred_url":"https://api.github.com/users/gamename/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamename/subscriptions","organizations_url":"https://api.github.com/users/gamename/orgs","repos_url":"https://api.github.com/users/gamename/repos","events_url":"https://api.github.com/users/gamename/events{/privacy}","received_events_url":"https://api.github.com/users/gamename/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-20T19:06:59Z","updated_at":"2015-08-20T19:06:59Z","closed_at":null,"body":"\r\nHi,\r\n\r\nIs there some way to determine the AMI ID of a build while packer is still running?  \r\n\r\nI have a template that is packer push'd to Atlas. One of the builds in it creates an Amazon AMI (see below for the abbreviated template).   At the place indicated, how can I get the AMI ID to add to the \"description\" field?\r\n\r\nThanks,\r\n-Tennis \r\n\r\n```\r\n{\r\n  \"variables\": {\r\n    \"atlas_name\": \"nextgxdx/centos7dev\",\r\n    ********* SNIP *******  \r\n},\r\n  \"push\": {\r\n    \"name\": \"{{user `atlas_name` }}\",\r\n    \"vcs\": false\r\n  },\r\n  \"builders\": [\r\n    {\r\n      \"type\": \"amazon-ebs\",\r\n      ****** SNIP ****\r\n    }\r\n  ],\r\n  \"provisioners\": [\r\n    {\r\n    **********SNIP*************\r\n    }\r\n  ],\r\n  \"post-processors\": [\r\n    [\r\n      {\r\n        \"type\": \"atlas\",\r\n        \"artifact\": \"{{ user `atlas_name` }}\",\r\n        \"artifact_type\": \"vagrant.box\",\r\n        \"only\": [\r\n          \"amazon-ebs\"\r\n        ],\r\n        \"metadata\": {\r\n          \"provider\": \"aws\",\r\n          \"version\":  \"{{ user `atlas_version` }}\",\r\n          \"description\": \"{{ user `atlas_description` }}\"  <----- HOW TO ADD AMI ID HERE???\r\n        }\r\n      }\r\n    ]\r\n  ]\r\n}\r\n\r\n```\r\n\r\n\r\n"}}