The Vault cluster admin token resource generates an admin-level token for the HCP Vault cluster.
This resource saves a single admin token per Vault cluster and auto-refreshes the token when it is about to expire. Destroying this resource does not invalidate the admin token.
resource "hcp_vault_cluster_admin_token" "example" {
cluster_id = "test-vault-cluster"
}
cluster_id
(String) The ID of the HCP Vault cluster.project_id
(String) The ID of the HCP project where the HCP Vault cluster is located.
If not specified, the project specified in the HCP Provider config block will be used, if configured.
If a project is not configured in the HCP Provider config block, the oldest project in the organization will be used.timeouts
(Block, Optional) (see below for nested schema)created_at
(String) The time that the admin token was created.id
(String) The ID of this resource.token
(String, Sensitive) The admin token of this HCP Vault cluster.timeouts
Optional:
create
(String)delete
(String)read
(String)