Skip to content

takeokunn/terraform-provider-cachix

Repository files navigation

Terraform Provider for Cachix

Tests Go Report Card

A Terraform provider for managing Cachix binary caches.

Usage

terraform {
  required_providers {
    cachix = {
      source  = "takeokunn/cachix"
      version = "~> 0.1"
    }
  }
}

provider "cachix" {}

resource "cachix_cache" "example" {
  name      = "my-cache"
  is_public = true
}

Set CACHIX_AUTH_TOKEN environment variable for authentication.

Full documentation is available on the Terraform Registry.

Development

make build    # Build
make test     # Unit tests
make testacc  # Acceptance tests (requires CACHIX_AUTH_TOKEN)
make generate # Generate documentation

License

MPL-2.0