Cannot import module project created before by Group access token, using Service Access token in TF
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
In the Terrafrom can't import module created before by group access token.:
# terraform import module.gitlab_project_6.gitlab_project.this PROJECT_ID
Error: Cannot import non-existent remote object
│
│ While attempting to import an existing object to "module.gitlab_project_6.gitlab_project.this", the provider detected that no object exists with the given id. Only pre-existing
│ objects can be imported; check that the id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote
│ object for this resource
But the test6 project exist but also in state file when i will import using personal token. Service Access token will remove and recreate this project again.
I m using providers "gitlabhq/gitlab v17.0.0 and tested in v18.5.0 this same error.
Edited by 🤖 GitLab Bot 🤖