SecretBackendKey

class SecretBackendKey : KotlinCustomResource

Creates a key on a PKI Secret Backend for Vault.

Example Usage

resources:
pki:
type: vault:Mount
properties:
path: pki
type: pki
defaultLeaseTtlSeconds: 3600
maxLeaseTtlSeconds: 86400
key:
type: vault:pkiSecret:SecretBackendKey
properties:
mount: ${pki.path}
type: exported
keyName: example-key
keyType: rsa
keyBits: '2048'

Import

PKI secret backend key can be imported using the id, e.g.

$ pulumi import vault:pkiSecret/secretBackendKey:SecretBackendKey key pki/key/bf9b0d48-d0dd-652c-30be-77d04fc7e94d

Properties

Link copied to clipboard
val backend: Output<String>

The path the PKI secret backend is mounted at, with no leading or trailing /s.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val keyBits: Output<Int>

Specifies the number of bits to use for the generated keys. Allowed values are 0 (universal default); with key_type=rsa, allowed values are: 2048 (default), 3072, or 4096; with key_type=ec, allowed values are: 224, 256 (default), 384, or 521; ignored with key_type=ed25519.

Link copied to clipboard
val keyId: Output<String>

ID of the generated key.

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

When a new key is created with this request, optionally specifies the name for this. The global ref default may not be used as a name.

Link copied to clipboard
val keyType: Output<String>

Specifies the desired key type; must be rsa, ed25519 or ec.

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

The managed key's UUID.

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

The managed key's configured name.

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 type: Output<String>

Specifies the type of the key to create. Can be exported,internal or kms.

Link copied to clipboard
val urn: Output<String>