Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

HashiCorp Consul

v3.4.0 published on Thursday, Oct 28, 2021 by Pulumi

The HashiCorp Consul provider for Pulumi can be used to provision any of the resources available in Consul.

Example

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

const node = new consul.Node("compute", {
  address: "www.google.com"
});
import * as consul from "@pulumi/consul";

const node = new consul.Node("compute", {
  address: "www.google.com"
});
import pulumi_consul as consul

node = consul.Node("compute",
  address='www.google.com'
)
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	consul "github.com/pulumi/pulumi-consul/sdk/v3/go/consul"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		node, err := consul.NewNode(ctx, "compute", &consul.NodeArgs{
			Address: pulumi.String("www.google.com"),
		})
		if err != nil {
			return err
		}

		return nil
	})
}

using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Consul;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var node = new Consul.Node("compute", new Consul.NodeArgs
            {
                Address = "www.google.com",
            });
        });
}