Skip to content

Terraform module to create and manage Azure DevOps Variable Groups with support for multiple normal and secret groups.

Notifications You must be signed in to change notification settings

Think-Cube/terraform-azuredevops-variable-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Name Version
terraform >= 1.6.3
azuredevops 1.11.2

Providers

Name Version
azuredevops 1.11.2

Modules

No modules.

Resources

Name Type
azuredevops_variable_group.groups resource
azuredevops_project.main data source

Inputs

Name Description Type Default Required
azuredevops_project Name of the Azure DevOps project where variable groups will be created. string n/a yes
variable_groups Map of variable groups to create. Each group can be of type "Normal" or "Secret".
Example:
variable_groups = {
group1 = {
type = "Normal"
name = "NormalGroup1"
description = "Example normal variable group"
allow_access = true
variables = [
{ name = "VAR1", secret_value = "" },
{ name = "VAR2", secret_value = "" }
]
}
group2 = {
type = "Secret"
name = "SecretGroup1"
description = "Example secret variable group"
allow_access = false
variables = [
{ name = "SECRET1", secret_value = "value1", is_secret = true }
]
}
}
map(object({
type = string
name = string
description = string
allow_access = bool
variables = list(object({
name = string
secret_value = string
is_secret = optional(bool, false)
}))
}))
n/a yes

Outputs

Name Description
variable_group_ids IDs of the created Azure DevOps variable groups.
variable_group_names Names of the created Azure DevOps variable groups.
variable_group_urls Web URLs of the created Azure DevOps variable groups.