gitlab_group_variable (Data Source)

The gitlab_group_variable data source allows to retrieve details about a group-level CI/CD variable.

Upstream API: GitLab REST API docs

Example Usage

data "gitlab_group_variable" "foo" {
  group = "my/example/group"
  key   = "foo"
}

# Using an environment scope
data "gitlab_group_variable" "bar" {
  group             = "my/example/group"
  key               = "bar"
  environment_scope = "staging/*"
}

Schema

Required

Optional

Read-Only