Skip to content

Migrating from 3.18.0 to 15.8.0 planned value cty.StringVal("") for a non-computed attribute for external_url

Migrating from 3.18.0 to 15.8.0 planned value cty.StringVal("") for a non-computed attribute for external_url

Bug Report

Migrating from 3.18.0 the terraform plan fails when running gitlab_project_environment stating cty.StringVal("") for a non-computed attribute for external_url

Relevant Terraform Configuration

resource "gitlab_project_environment" "restricted" {
  for_each     = toset(data.gitlab_projects.group.projects.*.path_with_namespace)
  project      = each.key
  name         = "restricted"
  stop_before_destroy = true
}

Relevant Log Output

[31m│[0m [0m[0mProvider "registry.terraform.io/gitlabhq/gitlab" planned an invalid value
[31m│[0m [0mfor
[31m│[0m [0mmodule.gitlab_project_environment.restricted["PATH_REMOVED"].external_url:
[31m│[0m [0mplanned value cty.StringVal("") for a non-computed attribute.
[31m│[0m [0m
[31m│[0m [0mThis is a bug in the provider, which should be reported in the provider's
[31m│[0m [0mown issue tracker.

Additional Details

  • GitLab Terraform Provider Version: 15.8.0
  • GitLab Version: 15.9.0
  • Terraform Version: 1.2.0
Edited by Sam Cruttenden