Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Overview

Declare instances, volumes, SSH keys, firewalls, floating IPs, and backup policies as infrastructure. The provider binary is terraform-provider-platform. One binary serves Terraform and OpenTofu — they share the plugin protocol.

The schema follows proto platform.v1. CRUD goes through the Go SDK.

These are the only resources the provider implements. Do not invent others.

ResourcePage
platform_instanceInstance
platform_volumeVolume
platform_ssh_keySSH key
platform_firewallFirewall
platform_floating_ipFloating IP
platform_backup_policyBackup policy

There are no data sources.

terraform {
required_providers {
platform = {
source = "cloud/platform"
}
}
}
provider "platform" {
endpoint = "127.0.0.1:9090"
token = var.platform_token
app = "app_default"
}
ArgumentRequiredDefault
endpointnoPLATFORM_GRPC, then 127.0.0.1:9090
tokennoPLATFORM_TOKEN
appnoPLATFORM_APP, then app_default

token is sensitive. Dev connections are unencrypted (WithInsecure in the provider). Do not point that default at a public host.

Install the binary, then apply a resource page example.