Hetzner Cloud

The Hetzner Cloud provider for Pulumi can be used to provision any of the cloud resources available in Hetzner Cloud. The Hetzner Cloud provider must be configured with credentials to deploy and update resources in Hetzner Cloud.

See the full API documentation for complete details of the available Hetzner Cloud provider APIs.

Setup

The Hetzner Cloud provider supports several options for providing access to Hetzner Cloud credentials. See the Hetzner Cloud setup page for details.

Example

const hcloud = require("@pulumi/hcloud")

const network = new hcloud.Network("demo-network", {
    ipRange: "10.0.1.0/24",
})
import * as hcloud from "@pulumi/hcloud";

const network = new hcloud.Network("demo-network", {
    ipRange: "10.0.1.0/24",
})
import pulumi_hcloud as hcloud

network = hcloud.Network("demo-network",
  ip_range="10.0.1.0/24",
)
import (
  "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
  hcloud "github.com/pulumi/pulumi-hcloud/sdk/go/hcloud"
)

network, _ := hcloud.NewNetwork(ctx, "demo-network", &hcloud.NetworkArgs{
  IpRange: pulumi.String("10.0.1.0/24"),
})
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.HCloud;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var network = new Network("demo-network", new NetworkArgs
            {
                IpRange = "10.0.1.0/24",
            });
        });
}

Libraries

The following packages are available in packager managers:

The Hetzner Cloud provider is open source and available in the pulumi/pulumi-hcloud repo.