Skip to content

allow for override for variable in gitlab_project_variable to be non-sensitive

Currently the variables in gitlab_project_variable are sensitive by default and cannot be overridden. There are some variables that I'd like to view the output for when doing a plan.

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place
Terraform will perform the following actions:
  # gitlab_project_variable.terraform_version-project will be updated in-place
  ~ resource "gitlab_project_variable" "terraform_version-project" {
        id                = "12345:TERRAFORM_VERSION:*"
      ~ value             = (sensitive value)
        # (6 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.

In this case, we're setting a default TERRAFORM_VERSION and would like to be able to review the variable that is going to be rolled out when doing the plan. Would it be possible to allow a sensitive override to false for these type of scenarios? I would imagine there are a lot other valid scenarios for this feature as well.

We are running Terraform 1.0.11 with version 3.7.0 of terraform-provider-gitlab.

Edited by Timo Furrer