The gitlab_group_share_group
resource allows to manage the lifecycle of group shared with another group.
Upstream API: GitLab REST API docs
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"
}
group_access
(String) The access level to grant the group. Valid values are: no one
, minimal
, guest
, reporter
, developer
, maintainer
, owner
, master
group_id
(String) The id of the main group to be shared.share_group_id
(Number) The id of the additional group with which the main group will be shared.expires_at
(String) Share expiration date. Format: YYYY-MM-DD
id
(String) The ID of this resource.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