NomadSecretBackend

class NomadSecretBackend : KotlinCustomResource

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,
});
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)
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,
});
});
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
})
}
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());
}
}
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'

Import

Nomad secret backend can be imported using the backend, e.g.

$ pulumi import vault:index/nomadSecretBackend:NomadSecretBackend nomad nomad

Properties

Link copied to clipboard
val address: Output<String>?

Specifies the address of the Nomad instance, provided as "protocol://host:port" like "http://127.0.0.1:4646".

Link copied to clipboard
val backend: Output<String>?

The unique path this backend should be mounted at. Must not begin or end with a /. Defaults to nomad.

Link copied to clipboard
val caCert: Output<String>?

CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.

Link copied to clipboard
val clientCert: Output<String>?

Client certificate to provide to the Nomad server, must be x509 PEM encoded.

Link copied to clipboard
val clientKey: Output<String>?

Client certificate key 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
val description: Output<String>?

Human-friendly description of the mount for the Active Directory backend.

Link copied to clipboard
val disableRemount: Output<Boolean>?

If set, opts out of mount migration on path updates. See here for more info on Mount Migration

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val local: Output<Boolean>?

Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.

Link copied to clipboard
val maxLeaseTtlSeconds: Output<Int>

Maximum possible lease duration for secrets in seconds.

Link copied to clipboard
val maxTokenNameLength: Output<Int>

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.

Link copied to clipboard
val maxTtl: Output<Int>

Maximum possible lease duration for secrets in seconds.

Link copied to clipboard
val namespace: Output<String>?

The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val token: Output<String>?

Specifies the Nomad Management token to use.

Link copied to clipboard
val ttl: Output<Int>

Specifies the ttl of the lease for the generated token.

Link copied to clipboard
val urn: Output<String>