Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Terraform / OpenTofu Provider for Polycrate

Based on the official HashiCorp Terraform Plugin Framework scaffolding.

This provider manages Polycrate Hosts (polycrate_host) against POST/GET/PATCH/DELETE /api/v1/hosts/. It does not talk to Hetzner, OpenStack, or other IaaS APIs. Provider differences stay in polycrate-api drivers.

Compatible with Terraform >= 1.0 and OpenTofu (protocol 6.0).

GitHub publishing, GPG signing, and Terraform Registry / OpenTofu Registry listing are out of band (see .github/workflows/release.yml).

Requirements

Build

go install

Dev override (OpenTofu / Terraform CLI config):

provider_installation {
  dev_overrides {
    "ayedo/polycrate" = "/path/to/go/bin"
  }
  direct {}
}

Configuration

provider "polycrate" {
  endpoint = "https://app.ayedo.cloud"
  token    = var.polycrate_token
}

Environment: POLYCRATE_ENDPOINT, POLYCRATE_TOKEN. Token is a User, Organization, or System API key (Authorization: Bearer), same as polycrate-sdk.

Resources and data sources

Type API
polycrate_host /api/v1/hosts/
polycrate_product (data) /api/v1/products/{id}/
polycrate_provider (data) /api/v1/providers/{id}/
polycrate_pop (data) /api/v1/pops/{id}/

Lifecycle actions (start, shutdown, reboot, reinstall) remain API/MCP actions, not Terraform CRUD.

Tests

go test ./...
# Acceptance (needs a live API):
POLYCRATE_ENDPOINT=https://app.ayedo.cloud POLYCRATE_TOKEN=... \
  POLYCRATE_WORKSPACE_ID=... POLYCRATE_PRODUCT_ID=... make testacc

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages