Skip to content

Description field is missing from token resources

Bug Report

Might be considered as a feature request, since it doesn't break functionality.

In the UI and API, Project Access Token, Personal Access Token and Group access token has a description field which is missing from Terraform resources.

Relevant Terraform Configuration

resource "gitlab_group_access_token" "this" {
  name         = var.name
  group        = var.path
  scopes       = var.scopes
  access_level = var.access_level

  rotation_configuration = var.rotation_configuration
}

resource "gitlab_personal_access_token" "this" {
  name    = var.name
  scopes  = var.scopes
  user_id = var.user_id

  rotation_configuration = var.rotation_configuration
}

resource "gitlab_project_access_token" "this" {
  name         = var.name
  project      = var.path
  scopes       = var.scopes
  access_level = var.access_level

  rotation_configuration = var.rotation_configuration
}

Relevant Terraform Command

terraform ...

Relevant Log Output

These are the debug logs of the `terraform` command output:

Additional Details

  • GitLab Terraform Provider Version: 17.8.0
  • GitLab Instance Version: v17.8.2 (Self Hosted)
  • Terraform Version: 1.10.1
Edited by Ummet Civi