gitlab-group/variable.tf

46 lines
866 B
Terraform
Raw Normal View History

2024-09-14 14:07:11 +00:00
variable "parent_group" {
type = string
default = ""
description = "Parent group ID"
}
2024-09-14 12:28:57 +00:00
variable "name" {
type = string
2024-09-14 14:07:11 +00:00
description = "Group name"
2024-09-14 12:28:57 +00:00
}
variable "description" {
type = string
2024-09-14 14:07:11 +00:00
description = "Group description"
}
variable "type" {
type = string
description = "Group type"
default = ""
validation {
condition = contains([
"",
"container",
"golang",
"typescript",
"cicd"
], var.type)
error_message = "Unsupported group type"
}
}
variable "ci_variables" {
type = map(object({
value = string
description = optional(string)
protected = optional(bool)
masked = optional(bool)
environment_scope = optional(string)
}))
description = "CI variables to be set for the group"
default = {}
2024-09-14 12:28:57 +00:00
}