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.
1) https://packer.io/docs/commands/index.html#enabling-machine-readable-output 2) https://packer.io/docs/post-processors/manifest.html On Wed, Jul 31, 2019, 23:45 Vritual Packer <luvs.christ...@gmail.com> wrote: > 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? > > -- > 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+unsubscr...@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 > <https://groups.google.com/d/msgid/packer-tool/e3708987-ca76-4cb3-bcbd-ce845cab7f06%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt9MUqgexN_KXkxFtQCqWEBY9AHfw1f0R_Uc%2B1k5iWWFOw%40mail.gmail.com.