gitlab_instance_variable (Resource)

The gitlab_instance_variable resource allows to manage the lifecycle of an instance-level CI/CD variable.

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_instance_variable" "example" {
  key       = "instance_variable_key"
  value     = "instance_variable_value"
  protected = false
  masked    = false
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# GitLab instance variables can be imported using an id made up of `variablename`, e.g.
terraform import gitlab_instance_variable.example instance_variable_key