EXPERIMENTAL: It is still early days for this plugin and thus not ready for prime time yet.
We do not publish binaries yet, so for now you need to build it yourself.
- Clone the git repository of the provider
git clone https://github.com/humio/terraform-provider-humio
cd terraform-provider-humio
- Build the provider plugin
go build -o terraform-provider-humio
- Install the provider by following the official documentation.
mkdir -p ~/.terraform.d/plugins
cp terraform-provider-humio ~/.terraform.d/plugins
You can specify the address and API token for Humio directly on the provider like this:
provider "humio" {
addr = "https://humio.example.com/" # If not specified, the default is: https://cloud.humio.com/
api_token = "XXXXXXXXXXXXXXXXXXXXXXXXX"
}
It is also possible to specify these settings using environment variables HUMIO_ADDR
and HUMIO_API_TOKEN
.
In most cases we recommend configuring the Humio address directly on the provider as described above, whereas the API token should be set as an environment variable to keep it out of the code.
See examples directory.