Pulumi Provider
Pulumi Provider
Source on GitHub: pulumi-HDB-HeliosDB-Proxy
The Pulumi provider is built on top of the Terraform provider via pulumi-terraform-bridge’s plugin-framework variant (pf). Same five resources, surfaced as first-class Pulumi types in TypeScript, Python, Go, and .NET.
TypeScript example
import * as heliosproxy from "@dimensigon/pulumi-heliosproxy";
const pool = new heliosproxy.PoolProfile("default-pool", { mode: "transaction", maxPoolSize: 200,});
const proxy = new heliosproxy.Instance("analytics", { replicas: 2, image: "ghcr.io/dimensigon/hdb-heliosdb-proxy:0.4.0", poolProfileRef: pool.name, nodes: [ { host: "pg-primary.db.svc", port: 5432, role: "primary", weight: 100 }, { host: "pg-standby.db.svc", port: 5432, role: "standby", weight: 100 }, ],});Resources
| Resource | Wraps Terraform |
|---|---|
heliosproxy.Instance | heliosproxy_instance |
heliosproxy.PoolProfile | heliosproxy_pool_profile |
heliosproxy.RoutingRule | heliosproxy_routing_rule |
heliosproxy.AuditPolicy | heliosproxy_audit_policy |
heliosproxy.TenantQuota | heliosproxy_tenant_quota |
How the bridge works
Two cmd binaries: pulumi-tfgen-heliosproxy generates the Pulumi schema; pulumi-resource-heliosproxy is the RPC server pulumi up launches and embeds the schema via //go:embed. make build produces both binaries plus the SDKs.
Operators who already use Pulumi don’t need to context-switch to HCL.