Open
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Please search the existing issues for relevant feature requests, and use the
reaction feature
(https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
to add upvotes to pre-existing requests.
Description
Terraform has a filebase64
built-in function, but it doesn't seem like Packer supports it.
For what it's worth, if I try to use the file
function on something that isn't valid UTF-8, Packer generates this error, which seems to imply the filebase64
function should exist:
Call to function "file" failed: contents of
*** are not valid UTF-8; use the
filebase64 function to obtain the Base64 encoded contents or the other file
functions (e.g. filemd5, filesha256) to obtain file hashing results instead.
Use Case(s)
Loading a binary file and embedding a base64 encoding of it into a cloud-init config, for example.
Potential configuration