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
}
No requirements.
Name | Version |
---|---|
azurerm | 3.84.0 |
gitlab | 16.6.0 |
No modules.
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 |
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) |
{ |
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) |
{ |
no |
No outputs.