gitlab_project_share_group resource not properly refreshed

gitlab_project_share_group resource not properly refreshed with current state of remote objects

Bug Report

When changing a resource of type gitlab_project_share_group outside of terraform (e.g. manually deleting a group from the project members), the resource in the state does not get updated and terraform does not see a change. gitlab_project_membership does this flawlessly.

Relevant Terraform Configuration

data "gitlab_group" "groups" {
 for_each  = var.gitlab_project_memberships
 full_path = each.key
}

resource "gitlab_project_share_group" "this" {
 for_each   = data.gitlab_group.groups

 project_id   = gitlab_project.this.id
 group_id     = each.value.id
 group_access = "developer"
}

Relevant Log Output

No changes. Your infrastructure matches the configuration.

Additional Details

  • GitLab Terraform Provider Version: 3.20.0 / 3.19.0
  • GitLab Version: 15.6
  • Terraform Version: 1.3.6
Edited by Alexander Heuser