-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
107 lines (101 loc) · 2.98 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
variable "enabled" {
type = bool
description = "enable/disable creation of all resources in this module"
default = true
}
variable "start_window_minutes" {
type = number
description = "Amount if time (in minutes) before starting a backup job"
default = 60
}
variable "completion_window_minutes" {
type = number
description = "Amount of time (in minutes) a backup job can run before it is automatically canceled"
default = 180
}
variable "opt_in_settings" {
type = map(any)
description = "To see the region specific opt-in choices please use the aws `backup describe-region-settings` cli command. Default is `{}`"
default = {}
}
# cross region settings
variable "cross_region_backup_enabled" {
type = bool
description = "enable/disable cross-region backups. Defaults to 'false'"
default = false
}
variable "cross_region_destination" {
type = string
description = "The region of the cross-region backup copy. Default is 'us-west-2'"
default = "us-west-2"
}
# daily backup settings
variable "daily_backup_enabled" {
type = bool
description = "enable/disable daily backups"
default = true
}
variable "daily_backup_tag_key" {
type = string
description = "Tag Key for backing up resources daily"
default = "BackupDaily"
}
variable "daily_backup_tag_value" {
type = string
description = "Tag Value for backing up resources daily"
default = "true"
}
# weekly backup settings
variable "weekly_backup_enabled" {
type = bool
description = "enable/disable weekly backups"
default = true
}
variable "weekly_backup_tag_key" {
type = string
description = "Tag Key for backing up resources weekly"
default = "BackupWeekly"
}
variable "weekly_backup_tag_value" {
type = string
description = "Tag Value for backing up resources weekly"
default = "true"
}
# quarterly backup settings
variable "quarterly_backup_enabled" {
type = bool
description = "enable/disable quarterly backups"
default = true
}
variable "quarterly_backup_tag_key" {
type = string
description = "Tag Key for backing up resources quarterly"
default = "BackupQuarterly"
}
variable "quarterly_backup_tag_value" {
type = string
description = "Tag Value for backing up resources quarterly"
default = "true"
}
# tagging
variable "tags" {
type = map(any)
description = "Optional; Map of key-value tags to apply to all applicable resources"
default = {}
}
variable "tags_vault" {
type = map(any)
description = "Optional; Map of key-value tags to apply to all backup vaults"
default = {}
}
variable "tags_plan" {
type = map(any)
description = "Optional; Map of key-value tags to apply to all backup plans"
default = {}
}
# vault notifications
variable "sns_topic_arn" {
type = string
description = "Optional: Topic ARN where backup vault notifications are directed."
default = ""
}