Problem to solve
Does self hosted CE v17 support saving terraform state in gitlab? I have enabled the infrastructure in general config, I can navigate to Terraform states, there I get terraform init but I’m just getting 404 not found on those urls.
Do I need EE for this?
The documentation is really confusing about this.
GitLab Community Edition v17.10.1
It should work with any tier, GitLab-managed Terraform/OpenTofu state | GitLab Docs
Can you share the exact steps/commands you did to allow reproducing the error? Also, screenshots would be helpful.
Thanks, it started to work. I think it was combination of 2 things, not sure exactly.
For sure, and that is tricky, this url works
https://git.mysite.com/api/v4/projects/12/terraform/state/citest
but this does not
https://git.mysite.com/api/v4/projects/k8s/deployment/terraform/state/citest
Also (but I cannot say for sure) it seems to me that initial state creation did not work from my local but worked from gitlab pipeline. But maybe it was just the url.
1 Like