-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
43 lines (42 loc) · 1.07 KB
/
variables.tf
File metadata and controls
43 lines (42 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
variable "azuredevops_project" {
description = "Name of the Azure DevOps project where variable groups will be created."
type = string
}
variable "variable_groups" {
description = <<EOT
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 }
]
}
}
EOT
type = map(object({
type = string
name = string
description = string
allow_access = bool
variables = list(object({
name = string
secret_value = string
is_secret = optional(bool, false)
}))
}))
}