There is a manifest post-processor which creates a json file with information about the artifacts. With that another script executing in your pipeline get the information you need.
On Thu, Apr 26, 2018, 15:34 <[email protected]> wrote: > Hi Rickard, yes I want to use the information spat out by packer after it > has finished the building the ami. > So you recommend using a post processor script to fetch that information? > > On Thursday, 26 April 2018 13:23:38 UTC+1, Rickard von Essen wrote: >> >> Also check the manifest post-processor. It will writ out a json with >> information about the build, such as region and ami-id with those you can >> use the aws cli to read any properties of the AMI. >> >> On 26 April 2018 at 13:16, Alvaro Miranda Aguilera <[email protected]> >> wrote: >> >>> if I understand this correctly, you want to use that information during >>> the packer build. >>> >>> looks very similar to a var file, it may need some format update, but >>> you could check into the var file >>> >>> Alvaro. >>> >>> On Thu, Apr 26, 2018 at 10:59 AM, <[email protected]> wrote: >>> >>>> **Help wanted/Guidance** >>>> >>>> _Tools we are using_ >>>> + Packer >>>> + AWS >>>> + Jenkins >>>> >>>> After packer builds an image in AWS, besides the default information >>>> packer outputs about the AMI, we are trying to add more information to that >>>> output like the custom tags we have added to help identify the AMI in AWS. >>>> >>>> **_Goal:_** The plan is to reference that file within Jenkins and use >>>> it for another part of the build. >>>> >>>> Had a look and have not been able to find a way to do this. Has anyone >>>> done this before or is there a way to add more information to that default >>>> output. >>>> >>>> An example of what the file might look like: >>>> >>>> >>>>> { >>>> uuid: 00000000 >>>> ... >>>> .. >>>> environment: development >>>> version: 3.0.0 >>>> software: jenkins >>>> } >>>> >>>>> >>>>> >>>> -- >>>> This mailing list is governed under the HashiCorp Community Guidelines >>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in >>>> violation of those guidelines may result in your removal from this mailing >>>> list. >>>> >>>> GitHub Issues: https://github.com/mitchellh/packer/issues >>>> IRC: #packer-tool on Freenode >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Packer" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/packer-tool/4a81de36-eb63-4e3b-a9ce-700a08c65125%40googlegroups.com >>>> <https://groups.google.com/d/msgid/packer-tool/4a81de36-eb63-4e3b-a9ce-700a08c65125%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Alvaro >>> >>> -- >>> This mailing list is governed under the HashiCorp Community Guidelines - >>> https://www.hashicorp.com/community-guidelines.html. Behavior in >>> violation of those guidelines may result in your removal from this mailing >>> list. >>> >>> GitHub Issues: https://github.com/mitchellh/packer/issues >>> IRC: #packer-tool on Freenode >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Packer" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/packer-tool/CAHqq0eyoQnyALfJk03rs%2BmObkGP%2BQpq7LaS8%3DiJA5h3LGXHv2A%40mail.gmail.com >>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0eyoQnyALfJk03rs%2BmObkGP%2BQpq7LaS8%3DiJA5h3LGXHv2A%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/cd6deae1-3064-4b90-9883-a21a191c71a3%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/cd6deae1-3064-4b90-9883-a21a191c71a3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-1K%2BnRZ7R2uSfg2S4HDf1UGF7fQSyCKrRSErf%2B1COh%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
