mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-13 18:01:07 +02:00
* [VAULT-39157] enos(cloud): add basic vault cloud scenario Add the skeleton of a Vault Cloud scenario whereby we create an HCP network, Vault Cloud cluster, and admin token. In subsequent PR's we'll wire up building images, waiting on builds, and ultimately fully testing the resulting image. * copywrite: add headers --------- Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
24 lines
473 B
HCL
24 lines
473 B
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
variable "cluster_id" {
|
|
description = "The ID of the HCP Vault cluster."
|
|
type = string
|
|
}
|
|
|
|
resource "hcp_vault_cluster_admin_token" "token" {
|
|
cluster_id = var.cluster_id
|
|
}
|
|
|
|
output "created_at" {
|
|
value = hcp_vault_cluster_admin_token.token.created_at
|
|
}
|
|
|
|
output "id" {
|
|
value = hcp_vault_cluster_admin_token.token.id
|
|
}
|
|
|
|
output "token" {
|
|
value = hcp_vault_cluster_admin_token.token.token
|
|
}
|