forked from appvia/terraform-aws-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
62 lines (52 loc) · 1.82 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
variable "name" {
type = string
description = "Name of the backup policy"
}
variable "regions" {
type = list(string)
default = []
description = "List of regions where resources to be backed up are located"
}
variable "vaults" {
type = list(object({
name = string
change_grace_days = optional(number)
min_retention_days = optional(number)
max_retention_days = optional(number)
}))
default = []
description = "List of Backup Vaults to be created along with their lock configuration"
}
variable "plans" {
type = list(object({
name = string
schedule = string
start_window_minutes = optional(number, 60)
complete_window_minutes = optional(number, 360)
backup_tag_name = optional(string, "BackupPolicy")
backup_role_name = optional(string, "lza-backup-service-linked-role")
vault_name = optional(string, "Default")
copy_backups = optional(list(object({
target_vault = string
lifecycle = optional(object({
cold_storage_after_days = optional(number)
delete_after_days = optional(number)
}))
})), [])
lifecycle = optional(object({
cold_storage_after_days = optional(number)
delete_after_days = optional(number)
}))
}))
description = "List of plan definitions. Each definition defines a backup plan governing the frequency, destinations and retention settings."
}
variable "deployment_targets" {
type = list(string)
default = []
description = "The accounts or organizational unit to attach the backup policy to."
}
variable "tags" {
type = map(string)
default = {}
description = "Map of tags to apply to resources create by this module. These are also passed down to individual backups."
}