How to communicate build data back to calling environment?

10 views
Skip to first unread message

Vritual Packer

unread,
Jul 31, 2019, 5:44:59 PM7/31/19
to Packer
Hello,
We are using AWS Codebuild to initiate a Packer build of an AMI.  

I need to be able to parse the output of the shell scripts that Packer runs so we can process what happened during the build and act accordingly.

Digging through the Packer documentation, there doesn't seem to be a supported method of communicating information from the build process back to the originating process...

What is the best way of getting the output from the build process and getting it into a file that can be easily parsed? 

Rickard von Essen

unread,
Aug 1, 2019, 1:48:24 AM8/1/19
to packe...@googlegroups.com
You can use -machine-readable 1), but maybe that is not what you need. More likely you want information about the AMI that was built. For that look into the manifest post-processor 2) and parse this manifest file with jq etc. 


--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/e3708987-ca76-4cb3-bcbd-ce845cab7f06%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages