Skip to content

Latest commit

 

History

History
160 lines (123 loc) · 2.88 KB

hcp_vault_cluster.md

File metadata and controls

160 lines (123 loc) · 2.88 KB

hcp_vault_cluster

back

Index

Terraform

terraform {
  required_providers {
    hcp = ">= 0.4.0"
  }
}

top

Example Usage

module "hcp_vault_cluster" {
  source = "./modules/hcp/d/hcp_vault_cluster"

  # cluster_id - (required) is a type of string
  cluster_id = null

  timeouts = [{
    default = null
  }]
}

top

Variables

variable "cluster_id" {
  description = "(required) - The ID of the HCP Vault cluster."
  type        = string
}

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      default = string
    }
  ))
  default = []
}

top

Datasource

data "hcp_vault_cluster" "this" {
  # cluster_id - (required) is a type of string
  cluster_id = var.cluster_id

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # default - (optional) is a type of string
      default = timeouts.value["default"]
    }
  }

}

top

Outputs

output "cloud_provider" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.cloud_provider
}

output "created_at" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.created_at
}

output "hvn_id" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.hvn_id
}

output "id" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.id
}

output "min_vault_version" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.min_vault_version
}

output "namespace" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.namespace
}

output "organization_id" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.organization_id
}

output "project_id" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.project_id
}

output "public_endpoint" {
  description = "returns a bool"
  value       = data.hcp_vault_cluster.this.public_endpoint
}

output "region" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.region
}

output "tier" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.tier
}

output "vault_private_endpoint_url" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.vault_private_endpoint_url
}

output "vault_public_endpoint_url" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.vault_public_endpoint_url
}

output "vault_version" {
  description = "returns a string"
  value       = data.hcp_vault_cluster.this.vault_version
}

output "this" {
  value = hcp_vault_cluster.this
}

top