Skip to content

xinau/terraform-provider-cue

Repository files navigation

Terraform Provider CUE

Terraform provider for generating JSON documents with CUE.

Documentation

The documentation for the CUE provider is available on the Terraform Registry.

Versions

The following table displays the CUE version the provider uses.

Terraform Provider CUE
v0.2.0 v0.4.3
v0.1.0 v0.4.1

Requirements

Building the Provider

To build the provider, you'll need to clone the repository and execute the Go install command from inside the repository's directory.

go install

Using the provider

The provider can be used by adding it to the provider requirements.

terraform {
  required_providers {
    cue = {
      source  = "xinau/cue"
    }
  }
}

If you wish to use a local provider binary instead, it will need to added to the development overrides.

provider_installation {
  dev_overrides {
    "xinau/cue" = "/home/developer/go/bin/terraform-provider-cue"
  }

  direct {}
}

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.

To generate or update documentation, run go generate.

LICENSE

This project is under MPL-2.0 license.