Secret Backend Key Args
data class SecretBackendKeyArgs(val backend: Output<String>? = null, val keyBits: Output<Int>? = null, val keyName: Output<String>? = null, val keyType: Output<String>? = null, val managedKeyId: Output<String>? = null, val managedKeyName: Output<String>? = null, val namespace: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<SecretBackendKeyArgs>
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'
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
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
The managed key's UUID.
Link copied to clipboard
The managed key's configured name.