back
terraform {
required_providers {
gitlab = ">= 3.6.0"
}
}
top
module "gitlab_group_variable" {
source = "./modules/gitlab/r/gitlab_group_variable"
# group - (required) is a type of string
group = null
# key - (required) is a type of string
key = null
# masked - (optional) is a type of bool
masked = null
# protected - (optional) is a type of bool
protected = null
# value - (required) is a type of string
value = null
# variable_type - (optional) is a type of string
variable_type = null
}
top
variable "group" {
description = "(required)"
type = string
}
variable "key" {
description = "(required)"
type = string
}
variable "masked" {
description = "(optional)"
type = bool
default = null
}
variable "protected" {
description = "(optional)"
type = bool
default = null
}
variable "value" {
description = "(required)"
type = string
}
variable "variable_type" {
description = "(optional)"
type = string
default = null
}
top
resource "gitlab_group_variable" "this" {
# group - (required) is a type of string
group = var.group
# key - (required) is a type of string
key = var.key
# masked - (optional) is a type of bool
masked = var.masked
# protected - (optional) is a type of bool
protected = var.protected
# value - (required) is a type of string
value = var.value
# variable_type - (optional) is a type of string
variable_type = var.variable_type
}
top
output "id" {
description = "returns a string"
value = gitlab_group_variable.this.id
}
output "this" {
value = gitlab_group_variable.this
}
top