Skip to content

Latest commit

 

History

History
120 lines (93 loc) · 1.95 KB

brightbox_server_group.md

File metadata and controls

120 lines (93 loc) · 1.95 KB

brightbox_server_group

back

Index

Terraform

terraform {
  required_providers {
    brightbox = ">= 2.0.3"
  }
}

top

Example Usage

module "brightbox_server_group" {
  source = "./modules/brightbox/r/brightbox_server_group"

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

  timeouts = [{
    create = null
    delete = null
  }]
}

top

Variables

variable "description" {
  description = "(optional) - User editable label"
  type        = string
  default     = null
}

variable "name" {
  description = "(optional) - User editable label"
  type        = string
  default     = null
}

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

top

Resource

resource "brightbox_server_group" "this" {
  # description - (optional) is a type of string
  description = var.description
  # name - (optional) is a type of string
  name = var.name

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

}

top

Outputs

output "default" {
  description = "returns a bool"
  value       = brightbox_server_group.this.default
}

output "fqdn" {
  description = "returns a string"
  value       = brightbox_server_group.this.fqdn
}

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

output "this" {
  value = brightbox_server_group.this
}

top