gitlab_group_share_group (Resource)

The gitlab_group_share_group resource allows to manage the lifecycle of group shared with another group.

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_group_share_group" "test" {
  group_id       = gitlab_group.foo.id
  share_group_id = gitlab_group.bar.id
  group_access   = "guest"
  expires_at     = "2099-01-01"
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# GitLab group shares can be imported using an id made up of `mainGroupId:shareGroupId`, e.g.
terraform import gitlab_group_share_group.test 12345:1337