Skip to content

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

ResourceWraps Terraform
heliosproxy.Instanceheliosproxy_instance
heliosproxy.PoolProfileheliosproxy_pool_profile
heliosproxy.RoutingRuleheliosproxy_routing_rule
heliosproxy.AuditPolicyheliosproxy_audit_policy
heliosproxy.TenantQuotaheliosproxy_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.