-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
45 lines (43 loc) · 1.42 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
41
42
43
44
45
variable "enabled" {
type = bool
default = true
description = "Variable indicating whether deployment is enabled"
}
variable "is_cross_account_backup_enabled" {
type = bool
default = false
description = "Create backup vault on different account and turn on copy action to this vault (provider.target needs to be set)"
}
variable "backup_plans" {
default = []
description = "Backup plans config along with rule and resources setup"
type = list(object({
name = string
resources = optional(list(string), [])
selection_tags = optional(list(object({
type = string
key = string
value = string
})), [])
rules = list(object({
name = string
schedule = string
enable_continuous_backup = optional(bool)
start_window = optional(string, 60)
completion_window = optional(number, 180)
lifecycle = optional(object({
cold_storage_after = optional(number)
delete_after = optional(number)
}))
copy_action_lifecycle = optional(object({
cold_storage_after = optional(number)
delete_after = optional(number)
}))
recovery_point_tags = optional(map(string))
}))
advanced_backup_setting = optional(object({
WindowsVSS = optional(string, null)
resource_type = optional(string, null)
}), null)
}))
}