You could have a provisioner delete the temp folder as the last step in the build process.
On Tue, Feb 26, 2019 at 11:49 AM goffries <[email protected]> wrote: > My primary concern is files being left over with secrets left behind. Is > there a way to safely guarantee everything gets cleaned up properly? > > On Tuesday, February 26, 2019 at 9:40:59 AM UTC-8, Megan Marsh wrote: >> >> I'm pretty sure we expect $TEMP to be there, yes. We upload our >> powershell files to it. If you delete that folder, you can _probably_ work >> around this by updating the value of $TEMP so that Packer has somewhere to >> upload files to. >> > -- > 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/8b8441f7-cc69-46b3-8ffa-a3ba8fabd77b%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/8b8441f7-cc69-46b3-8ffa-a3ba8fabd77b%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/CAGPV1updkqTpO%2B%2BQDQw%2B8yyM_4FJwK6U3zRPQw%2Bb_8jnSq2VJQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
