Skip to content

Latest commit

 

History

History
109 lines (84 loc) · 1.7 KB

brightbox_config_map.md

File metadata and controls

109 lines (84 loc) · 1.7 KB

brightbox_config_map

back

Index

Terraform

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

top

Example Usage

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

  # data - (required) is a type of map of string
  data = {}
  # name - (optional) is a type of string
  name = null

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

top

Variables

variable "data" {
  description = "(required) - keys/values making up the ConfigMap"
  type        = map(string)
}

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_config_map" "this" {
  # data - (required) is a type of map of string
  data = var.data
  # 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 "id" {
  description = "returns a string"
  value       = brightbox_config_map.this.id
}

output "this" {
  value = brightbox_config_map.this
}

top