-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
feature request: new built-in function gzip(string) #3407
Comments
This is definitely needed especially with Kubernetes TLS assets. I could not able to get working with template_cloudinit_config. Please let me know your thoughts or suggestions. |
Any plan to incorporate gzip support in template_file for upcoming terraform release? |
We unfortunately need for TLS too. What is the current workaround without using storages? |
Hi all! Sorry for the long silence here. Since Terraform v0.10.3 we have had the When a resource type in a provider expects a small binary data blob to be provided in configuration, it must be written to accept it in base64 encoding. For example, the Since we now have a gzip function, I'm going to close this out. Sorry we didn't catch this back when preparing the v0.10.3 release. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Maybe this is a little bit opinionated but here it is.
Recently I run into an issue with cloud-config (yes, again (: ), and I solved it with a gzip function. I use GCE for deploying my machines and the maximum size for metadata is 32KB. I was deploying a whole Kubernetes cluster using CoreOS and cloud-config but when I tried to create the kube-master (which requires a bunch of files -certs,keys,cfgs-) it suddenly failed:
fileSizeTooLarge
.Probably the best way to create this kind of clusters is to refer to a google cloud storage which contains everything I need and load them when booting but:
Having a gzip built-in interpolation function solved my problem, I'm using it like this:
And then in the cloud-config template like this:
WDYT, is it worth it?
The text was updated successfully, but these errors were encountered: