Skip to content

Latest commit

 

History

History
120 lines (95 loc) · 1.99 KB

File metadata and controls

120 lines (95 loc) · 1.99 KB

gitlab_group_variable

back

Index

Terraform

terraform {
  required_providers {
    gitlab = ">= 3.6.0"
  }
}

top

Example Usage

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

Variables

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

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

Outputs

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

output "this" {
  value = gitlab_group_variable.this
}

top