Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
25e280f7
Commit
25e280f7
authored
Jul 16, 2021
by
Justin Farmiloe
Committed by
Marcia Ramos
Jul 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add troubleshooting section for missing group_share resources
parent
91b16296
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
doc/user/infrastructure/index.md
doc/user/infrastructure/index.md
+33
-1
No files found.
doc/user/infrastructure/index.md
View file @
25e280f7
...
...
@@ -89,7 +89,7 @@ tools or rely on 3rd party solutions to streamline their IaC workflows.
Read more on setting up and
[
using the merge request integrations
](
mr_integration.md
)
.
## The GitLab
t
erraform provider
## The GitLab
T
erraform provider
WARNING:
The GitLab Terraform provider is released separately from GitLab.
...
...
@@ -105,3 +105,35 @@ is available as part of the official Terraform provider documentations.
## Create a new cluster through IaC
Learn how to
[
create a new cluster on Google Kubernetes Engine (GKE)
](
clusters/connect/new_gke_cluster.md
)
.
## Troubleshooting
### `gitlab_group_share_group` resources not detected when subgroup state is refreshed
The GitLab Terraform provider can fail to detect existing
`gitlab_group_share_group`
resources
due to the issue
[
"User with permissions cannot retrieve `share_with_groups` from the API"
](
https://gitlab.com/gitlab-org/gitlab/-/issues/328428
)
.
This results in an error when running
`terraform apply`
because Terraform attempts to recreate an
existing resource.
For example, consider the following group/subgroup configuration:
```
plaintext
parent-group
├── subgroup-A
└── subgroup-B
```
Where:
-
User
`user-1`
creates
`parent-group`
,
`subgroup-A`
, and
`subgroup-B`
.
-
`subgroup-A`
is shared with
`subgroup-B`
.
-
User
`terraform-user`
is member of
`parent-group`
with inherited
`owner`
access to both subgroups.
When the Terraform state is refreshed, the API query
`GET /groups/:subgroup-A_id`
issued by the provider does not return the
details of
`subgroup-B`
in the
`shared_with_groups`
array. This leads to the error.
To workaround this issue, make sure to apply one of the following conditions:
1.
The
`terraform-user`
creates all subgroup resources.
1.
Grant Maintainer or Owner role to the
`terraform-user`
user on
`subgroup-B`
.
1.
The
`terraform-user`
inherited access to
`subgroup-B`
and
`subgroup-B`
contains at least one project.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment