Packer: Feature request: Return AMI id

Created on 10 Jul 2017  ยท  5Comments  ยท  Source: hashicorp/packer

Hi,

It would be useful to have a usable reference of the new created AMIs.
I list some options I would like to have available out-of-the-box:

  1. Output the AMI id, so that this can be used from within the build.json itself.
  2. Write the AMI id into a text file.
  3. Write the AMI id into a file, formatted as usable Terraform var file.

  4. When "copy the AMI over a list of regions" is used, return a map:
    "region1": "ami-idxxx"
    "region2": "ami-idyyy"

buildeamazon question

All 5 comments

Perfect. Thanks.

@rickard-von-essen : any suggestions for the Azure builder? artifact_id is blank...

   {
      "name": "azure-arm",
      "builder_type": "azure-arm",
      "build_time": 1538052650,
      "files": null,
      "artifact_id": "",
      "packer_run_uuid": "2c711ee4-6548-7a81-6a98-2120c99d43cb"
    }

@akomakom open a new issue.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shantanugadgil picture shantanugadgil  ยท  3Comments

DanielBo picture DanielBo  ยท  3Comments

znerd picture znerd  ยท  3Comments

jesse-c picture jesse-c  ยท  3Comments

s4mur4i picture s4mur4i  ยท  3Comments