HashiCorp Vault

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

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

Setup

The Vault provider supports several options for interacting with HashiCorp Vault. See the Vault setup page for details.

Example

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

const be = new vault.AuthBackend("example", {
  type: "github"
});
import * as vault from "@pulumi/vault";

const be = new vault.AuthBackend("example", {
  type: "github"
});
import pulumi_vault as vault

be = vault.AuthBackend("example",
  type='github'
)
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	vault "github.com/pulumi/pulumi-vault/sdk/v4/go/vault"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		be, err := vault.NewAuthBackend(ctx, "example", &vault.AuthBackendArgs{
			Type: pulumi.String("github"),
		})
		if err != nil {
			return err
		}

		return nil
	})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Vault;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var be = new Vault.AuthBackend("example", new Vault.AuthBackendArgs
            {
                Type = "github",
            });
        });
}

Libraries

The following packages are available in packager managers:

The HashiCorp Vault provider is open source and available in the pulumi/pulumi-vault repo.