-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue archiving base64 encoded content w/ source block #149
Comments
Hello, is anybody at least going to acknowledge this issue? |
I stumbled across this problem and I think the ultimate answer is that it is doing what it is supposed to and this use case just isn't supported. I'd come across this when I was trying to create a zip containing a binary executable for deployment to an AWS lambda layer. I needed the binary to be within a specific location in the zip ( My beautiful imagined world would have something like data "archive_file" "output_archive" {
type = "zip"
output_path = "${path.module}/output.zip"
source {
// Dear TL;DRers, this isn't a real param, just a suggestion.
source_path = "${path.module}/my_raw_binary"
filename = "${data.archive_file.input_archive.output_path}"
}
} So sadly I think the solution is to make the zip outside of terraform. 😞 |
we need content_base64 argument similar to the local_file resource here: https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file#content_base64 |
Its very simple and basic functionality and is still not implemented 😞 |
Just stumbled upon this issue myself. The source block needs to have a content_base64 argument implemented ASAP |
Terraform CLI and Provider Versions
Terraform v1.2.3
on darwin_amd64
Terraform Configuration
Expected Behavior
Just for the sake of producing an working bug in the Terraform configuration we have the following:
Expected behaviour is that the input.zip archive that is archived within output.zip archive is valid and extractable.
Actual Behavior
When 'output.zip' archive is extracted, 'input.zip' is present but it's not extractable. Upon closer inspection it seems that it's still base64 encoded.
Steps to Reproduce
terraform apply
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: