Come join Pulumi for the industry's first Cloud Engineering Summit! October 7–8. Save Your Spot

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/v2/go/pulumi"
  vault "github.com/pulumi/pulumi-vault/sdk/v2/go/vault"
)

be, _ := vault.NewAuthBackend(ctx, "example", &vault.AuthBackendArgs{
  Type: pulumi.String("github"),
})
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.