gitlab_group_access_token (Resource)

The gitlab_group_access_tokenresource allows to manage the lifecycle of a group access token.

Upstream API: GitLab REST API

Example Usage

resource "gitlab_group_access_token" "example" {
  group        = "25"
  name         = "Example project access token"
  expires_at   = "2020-03-14"
  access_level = "developer"

  scopes = ["api"]
}

resource "gitlab_group_variable" "example" {
  group = "25"
  key   = "gat"
  value = gitlab_group_access_token.example.token
}

Schema

Required

Optional

Read-Only

Nested Schema for rotation_configuration

Required:

Import

Import is supported using the following syntax:

# A GitLab Group Access Token can be imported using a key composed of `<group-id>:<token-id>`, e.g.
terraform import gitlab_group_access_token.example "12345:1"

# ATTENTION: the `token` resource attribute is not available for imported resources as this information cannot be read from the GitLab API.