/terraform-provider-gzip

A very simple Terraform plugin that gzip+base64s its input

Primary LanguageGoMIT LicenseMIT

Terraform GZIP resource plugin

A simple plugin that gzips and base64 encodes whatever is passed to it as input. Primarily used for passing large user_data to AWS instances.

Usage:

To install the plugin:

Edit ~/.terraformrc

providers {
    gzip = "terraform-provider-gzip"
}


Then in your terraform scripts:

provider "gzip" {
  compressionlevel = "BestCompression"
}

resource "gzip_me" "example_data" {
    input = "Thing that will be gzipped"
}

Then example_data.output should contain your data, but gzipped