back
terraform {
required_providers {
boundary = ">= 1.0.1"
}
}
top
module "boundary_target" {
source = "./modules/boundary/r/boundary_target"
# default_port - (optional) is a type of number
default_port = null
# description - (optional) is a type of string
description = null
# host_set_ids - (optional) is a type of set of string
host_set_ids = []
# name - (optional) is a type of string
name = null
# scope_id - (required) is a type of string
scope_id = null
# session_connection_limit - (optional) is a type of number
session_connection_limit = null
# session_max_seconds - (optional) is a type of number
session_max_seconds = null
# type - (required) is a type of string
type = null
# worker_filter - (optional) is a type of string
worker_filter = null
}
top
variable "default_port" {
description = "(optional) - The default port for this target."
type = number
default = null
}
variable "description" {
description = "(optional) - The target description."
type = string
default = null
}
variable "host_set_ids" {
description = "(optional) - A list of host set ID's."
type = set(string)
default = null
}
variable "name" {
description = "(optional) - The target name. Defaults to the resource name."
type = string
default = null
}
variable "scope_id" {
description = "(required) - The scope ID in which the resource is created. Defaults to the provider's `default_scope` if unset."
type = string
}
variable "session_connection_limit" {
description = "(optional)"
type = number
default = null
}
variable "session_max_seconds" {
description = "(optional)"
type = number
default = null
}
variable "type" {
description = "(required) - The target resource type."
type = string
}
variable "worker_filter" {
description = "(optional) - Boolean expression to filter the workers for this target"
type = string
default = null
}
top
resource "boundary_target" "this" {
# default_port - (optional) is a type of number
default_port = var.default_port
# description - (optional) is a type of string
description = var.description
# host_set_ids - (optional) is a type of set of string
host_set_ids = var.host_set_ids
# name - (optional) is a type of string
name = var.name
# scope_id - (required) is a type of string
scope_id = var.scope_id
# session_connection_limit - (optional) is a type of number
session_connection_limit = var.session_connection_limit
# session_max_seconds - (optional) is a type of number
session_max_seconds = var.session_max_seconds
# type - (required) is a type of string
type = var.type
# worker_filter - (optional) is a type of string
worker_filter = var.worker_filter
}
top
output "id" {
description = "returns a string"
value = boundary_target.this.id
}
output "session_connection_limit" {
description = "returns a number"
value = boundary_target.this.session_connection_limit
}
output "session_max_seconds" {
description = "returns a number"
value = boundary_target.this.session_max_seconds
}
output "this" {
value = boundary_target.this
}
top