Hetzner Cloud v1.20.0 published on Friday, Jul 26, 2024 by Pulumi
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.
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/v3/go/pulumi"
hcloud "github.com/pulumi/pulumi-hcloud/sdk/go/hcloud"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
network, err := hcloud.NewNetwork(ctx, "demo-network", &hcloud.NetworkArgs{
IpRange: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.HCloud;
class Program
{
static Task Main() =>
Deployment.RunAsync(() => {
var network = new Network("demo-network", new NetworkArgs
{
IpRange = "10.0.1.0/24",
});
});
}