Skip to content

cyber-scot/terraform-gitlab-project-setup

Repository files navigation

resource "gitlab_project_variable" "project_vars" {
  for_each  = data.azurerm_key_vault_secret.secrets
  project   = data.gitlab_project.project.id
  key       = each.key
  value     = each.value.value
  protected = true
}

Requirements

No requirements.

Providers

Name Version
azurerm 3.84.0
gitlab 16.6.0

Modules

No modules.

Resources

Name Type
gitlab_project_variable.project_vars resource
azurerm_key_vault.mgmt_kv data source
azurerm_key_vault_secret.secrets data source
azurerm_key_vault_secrets.get_secrets data source
azurerm_resource_group.mgmt_rg data source
gitlab_group.group data source
gitlab_project.project data source

Inputs

Name Description Type Default Required
GITLAB_TOKEN The token to be used to authenticate to GitLab, normally sourced via TF_VAR string n/a yes
Regions Converts shorthand name to longhand name via lookup on map list map(string)
{
"eus": "East US",
"euw": "West Europe",
"uks": "UK South",
"ukw": "UK West"
}
no
env The env variable, for example - prd for production. normally passed via TF_VAR. string "prd" no
gitlab_group The name of the gitlab group string "cyber-scot" no
gitlab_instance The name of the GitLab instance string "gitlab.com" no
gitlab_project_name The name of the GitLab project string "terraform-ci-cd-glue" no
loc The loc variable, for the shorthand location, e.g. uks for UK South. Normally passed via TF_VAR. string "uks" no
short The shorthand name of to be used in the build, e.g. cscot for CyberScot. Normally passed via TF_VAR. string "cscot" no
static_tags The tags variable map(string)
{
"Contact": "info@cyber.scot",
"CostCentre": "671888",
"ManagedBy": "Terraform"
}
no

Outputs

No outputs.

About

A project used to setup some values in a GitLab instance 🦊

Resources

License

Stars

Watchers

Forks

Packages

No packages published