vault_pki_secret_backend_key

Reads key data from Vault.

Example Usage

resource "vault_mount" "pki" {
  path        = "pki"
  type        = "pki"
  description = "PKI secret engine mount"
}

resource "vault_pki_secret_backend_key" "key" {
  backend  = vault_mount.pki.path
  type     = "internal"
  key_name = "example"
  key_type = "rsa"
  key_bits = "4096"
}

data "vault_pki_secret_backend_key" "example" {
  backend = vault_mount.key.path
  key_ref = vault_pki_secret_backend_key.key.key_id
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the arguments above, the following attributes are exported: