-
Notifications
You must be signed in to change notification settings - Fork 9
/
variables.tf
40 lines (35 loc) · 1.02 KB
/
variables.tf
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
variable "resource_ids" {
description = "Id of the Azure resources to tag"
type = list(string)
}
variable "tags" {
description = "Tags to apply on resource"
type = map(string)
}
variable "force" {
description = "True to apply every time"
type = bool
default = false
}
variable "behavior" {
description = "Behavior for tags applying. Must be `merge` or `overwrite`."
type = string
default = "merge"
validation {
condition = contains(["merge", "overwrite"], var.behavior)
error_message = "The value for behavior must be either `merge` or `overwrite`."
}
}
variable "nb_resources" {
description = "Number of resources to tag"
type = number
}
variable "interpreter" {
description = "System interpreter to use for tagging script."
type = string
default = "bash"
validation {
condition = contains(["bash", "PowerShell"], var.interpreter)
error_message = "The value for interpreter must be either `bash` or `PowerShell`."
}
}