Skip to content

Latest commit

 

History

History
101 lines (78 loc) · 1.79 KB

boundary_host_catalog.md

File metadata and controls

101 lines (78 loc) · 1.79 KB

boundary_host_catalog

back

Index

Terraform

terraform {
  required_providers {
    boundary = ">= 1.0.1"
  }
}

top

Example Usage

module "boundary_host_catalog" {
  source = "./modules/boundary/r/boundary_host_catalog"

  # description - (optional) is a type of string
  description = null
  # name - (optional) is a type of string
  name = null
  # scope_id - (required) is a type of string
  scope_id = null
  # type - (required) is a type of string
  type = null
}

top

Variables

variable "description" {
  description = "(optional) - The host catalog description."
  type        = string
  default     = null
}

variable "name" {
  description = "(optional) - The host catalog name. Defaults to the resource name."
  type        = string
  default     = null
}

variable "scope_id" {
  description = "(required) - The scope ID in which the resource is created."
  type        = string
}

variable "type" {
  description = "(required) - The host catalog type. Only `Static` (yes, title case) is supported."
  type        = string
}

top

Resource

resource "boundary_host_catalog" "this" {
  # description - (optional) is a type of string
  description = var.description
  # name - (optional) is a type of string
  name = var.name
  # scope_id - (required) is a type of string
  scope_id = var.scope_id
  # type - (required) is a type of string
  type = var.type
}

top

Outputs

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

output "this" {
  value = boundary_host_catalog.this
}

top