Nomad Secret Backend Args
data class NomadSecretBackendArgs(val address: Output<String>? = null, val backend: Output<String>? = null, val caCert: Output<String>? = null, val clientCert: Output<String>? = null, val clientKey: Output<String>? = null, val defaultLeaseTtlSeconds: Output<Int>? = null, val description: Output<String>? = null, val disableRemount: Output<Boolean>? = null, val local: Output<Boolean>? = null, val maxLeaseTtlSeconds: Output<Int>? = null, val maxTokenNameLength: Output<Int>? = null, val maxTtl: Output<Int>? = null, val namespace: Output<String>? = null, val token: Output<String>? = null, val ttl: Output<Int>? = null) : ConvertibleToJava<NomadSecretBackendArgs>
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const config = new vault.NomadSecretBackend("config", {
backend: "nomad",
description: "test description",
defaultLeaseTtlSeconds: 3600,
maxLeaseTtlSeconds: 7200,
maxTtl: 240,
address: "https://127.0.0.1:4646",
token: "ae20ceaa-...",
ttl: 120,
});
Content copied to clipboard
import pulumi
import pulumi_vault as vault
config = vault.NomadSecretBackend("config",
backend="nomad",
description="test description",
default_lease_ttl_seconds=3600,
max_lease_ttl_seconds=7200,
max_ttl=240,
address="https://127.0.0.1:4646",
token="ae20ceaa-...",
ttl=120)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var config = new Vault.NomadSecretBackend("config", new()
{
Backend = "nomad",
Description = "test description",
DefaultLeaseTtlSeconds = 3600,
MaxLeaseTtlSeconds = 7200,
MaxTtl = 240,
Address = "https://127.0.0.1:4646",
Token = "ae20ceaa-...",
Ttl = 120,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vault.NewNomadSecretBackend(ctx, "config", &vault.NomadSecretBackendArgs{
Backend: pulumi.String("nomad"),
Description: pulumi.String("test description"),
DefaultLeaseTtlSeconds: pulumi.Int(3600),
MaxLeaseTtlSeconds: pulumi.Int(7200),
MaxTtl: pulumi.Int(240),
Address: pulumi.String("https://127.0.0.1:4646"),
Token: pulumi.String("ae20ceaa-..."),
Ttl: pulumi.Int(120),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.NomadSecretBackend;
import com.pulumi.vault.NomadSecretBackendArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var config = new NomadSecretBackend("config", NomadSecretBackendArgs.builder()
.backend("nomad")
.description("test description")
.defaultLeaseTtlSeconds(3600)
.maxLeaseTtlSeconds(7200)
.maxTtl(240)
.address("https://127.0.0.1:4646")
.token("ae20ceaa-...")
.ttl(120)
.build());
}
}
Content copied to clipboard
resources:
config:
type: vault:NomadSecretBackend
properties:
backend: nomad
description: test description
defaultLeaseTtlSeconds: '3600'
maxLeaseTtlSeconds: '7200'
maxTtl: '240'
address: https://127.0.0.1:4646
token: ae20ceaa-...
ttl: '120'
Content copied to clipboard
Import
Nomad secret backend can be imported using the backend
, e.g.
$ pulumi import vault:index/nomadSecretBackend:NomadSecretBackend nomad nomad
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(address: Output<String>? = null, backend: Output<String>? = null, caCert: Output<String>? = null, clientCert: Output<String>? = null, clientKey: Output<String>? = null, defaultLeaseTtlSeconds: Output<Int>? = null, description: Output<String>? = null, disableRemount: Output<Boolean>? = null, local: Output<Boolean>? = null, maxLeaseTtlSeconds: Output<Int>? = null, maxTokenNameLength: Output<Int>? = null, maxTtl: Output<Int>? = null, namespace: Output<String>? = null, token: Output<String>? = null, ttl: Output<Int>? = null)
Properties
Link copied to clipboard
Client certificate to provide to the Nomad server, must be x509 PEM encoded.
Link copied to clipboard
Default lease duration for secrets in seconds.
Link copied to clipboard
Human-friendly description of the mount for the Active Directory backend.
Link copied to clipboard
If set, opts out of mount migration on path updates. See here for more info on Mount Migration
Link copied to clipboard
Maximum possible lease duration for secrets in seconds.
Link copied to clipboard
Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.