{"id":44018479,"url":"https://github.com/perun-engineering/terraform-gitlab","last_synced_at":"2026-02-07T16:04:47.537Z","repository":{"id":295596515,"uuid":"990590951","full_name":"Perun-Engineering/terraform-gitlab","owner":"Perun-Engineering","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-04T15:43:51.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-04T19:26:33.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Perun-Engineering.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-26T10:46:33.000Z","updated_at":"2025-08-04T15:43:53.000Z","dependencies_parsed_at":"2025-08-04T17:23:56.944Z","dependency_job_id":"42dbf8c9-17ad-4cf4-a2b2-dde7e35cc665","html_url":"https://github.com/Perun-Engineering/terraform-gitlab","commit_stats":null,"previous_names":["perun-engineering/terraform-gitlab"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Perun-Engineering/terraform-gitlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perun-Engineering%2Fterraform-gitlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perun-Engineering%2Fterraform-gitlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perun-Engineering%2Fterraform-gitlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perun-Engineering%2Fterraform-gitlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Perun-Engineering","download_url":"https://codeload.github.com/Perun-Engineering/terraform-gitlab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perun-Engineering%2Fterraform-gitlab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29199519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T14:35:27.868Z","status":"ssl_error","status_checked_at":"2026-02-07T14:25:51.081Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-07T16:04:35.413Z","updated_at":"2026-02-07T16:04:47.531Z","avatar_url":"https://github.com/Perun-Engineering.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitLab Terraform Module\n\nThis Terraform module provides resources to manage GitLab groups, projects, integrations, and other configurations. It supports creating and managing GitLab resources using a structured configuration approach with YAML files or direct variable definitions.\n\n## Features\n\n- Manage GitLab groups and projects.\n- Configure integrations (e.g., custom issue tracker, Jira, Slack, etc.).\n- Define custom project settings, approval rules, badges, and more.\n- Easily extendable and customizable to fit various GitLab environments.\n\n## Limitations\n\n- Creation of local users is not supported at the moment, only via SAML\n\n## Requirements\n\n- Terraform 1.5.7 or higher.\n- GitLab Provider for Terraform 18.0.0 or higher.\n\n## Usage\n\n### Step 1: Create Your Configuration Files\n\n1. **Groups Configuration**\n\n   Define your GitLab groups in YAML files located in the `groups` directory. Example `groups/groups.yaml`:\n\n   ```yaml\n   groups:\n     - name: alpha\n       create: true\n       settings:\n         visibility: private\n         description: \"Development top-level group\"\n         share_groups:\n           - share_group_id: \"roles_test/security-view\"\n             group_access: reporter\n     - name: roles_test\n       create: true\n       settings:\n         visibility: private\n         description: \"Parent group for user roles subgroups\"\n   ```\n\n2. **Projects Configuration**\n\n   Define your GitLab projects in YAML files located in the projects directory. Example projects/projects.yaml:\n\n   ```yaml\n   projects:\n   - name: project-alpha\n       create: true\n       visibility: private\n       description: \"Alpha project description\"\n       settings: {}\n   ```\n\n### Step 2: Use the Module\n\nCreate a main.tf file and use the module to manage your GitLab resources:\n\n    ```hcl\n    module \"gitlab_resources\" {\n    source = \"../module/gitlab_module\"\n\n    gitlab_groups   = local.groups\n    gitlab_projects = local.projects\n    }\n    ```\n\n### Step 3: Initialize and Apply\n\n1. **Initialize Terraform:**\n\n   ```sh\n   terraform init\n   ```\n\n2. **Apply the Terraform configuration:**\n\n   ```sh\n   terraform apply\n   ```\n\n### Step 4: Verify Outputs\n\nThe module will output the IDs and URLs of the created resources. You can check the created GitLab resources by visiting their URLs.\n\n## Inputs\n\nThe module accepts the following inputs:\n\n- gitlab_groups: List of GitLab groups to create and configure.\n- gitlab_projects: List of GitLab projects to create and configure.\n- gitlab_token: GitLab toke\n- gitlab_base_url: Url of the GitLab instance API\n- tier: Tier of your GitLab license\n\nRefer to the variables.tf file for more details.\n\n## Outputs\n\nThe module provides the following outputs:\n\n- group_ids: List of IDs for the created GitLab groups.\n- project_ids: List of IDs for the created GitLab projects.\n- Other resource-specific outputs, such as integration settings and custom configurations.\n\n## Examples\n\nYou can find examples in the examples/ directory for different use cases, such as managing multiple groups, configuring integrations, and using different YAML configurations.\n\n- [terraform](https://github.com/opsworks-co/terraform-gitlab/tree/main/examples/terraform) - How to use module with terraform\n- [terragrunt](https://github.com/opsworks-co/terraform-gitlab/tree/main/examples/terragrunt) - How to use module with terragrunt\n\n## Authors\n\nModule is maintained by [Serhii Kaidalov](https://github.com/wiseelf).\n\n## License\n\nApache 2 Licensed. See [LICENSE](https://github.com/opsworks-co/terraform-gitlab/tree/main/LICENSE) for full details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperun-engineering%2Fterraform-gitlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperun-engineering%2Fterraform-gitlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperun-engineering%2Fterraform-gitlab/lists"}