HashiCorp Vault v5.10.0, Mar 21 23
HashiCorp Vault
The HashiCorp Vault provider for Pulumi can be used to provision any of the resources available in Vault.
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",
});
});
}