1. Packages
  2. HashiCorp Vault
HashiCorp Vault v5.20.0 published on Tuesday, Feb 20, 2024 by Pulumi

HashiCorp Vault

vault logo
HashiCorp Vault v5.20.0 published on Tuesday, Feb 20, 2024 by Pulumi

    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",
                });
            });
    }
    
    vault logo
    HashiCorp Vault v5.20.0 published on Tuesday, Feb 20, 2024 by Pulumi