-
Notifications
You must be signed in to change notification settings - Fork 11
/
variables.tf
126 lines (109 loc) · 3.25 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
variable "iam_role_name" {
description = "Name of IAM Role to associate to the Backup Plan"
type = string
default = null
}
################
# AWS Backup plan
################
variable "plan_name" {
description = "The display name of a backup plan"
type = string
}
variable "rules" {
description = "A list of rules mapping rule configurations for a backup plan"
type = any
default = []
}
variable "selection_name" {
description = "The display name of a resource selection document"
type = string
default = null
}
variable "selection_resources" {
description = "A list of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan"
type = list(string)
default = []
}
variable "selection_not_resources" {
description = "An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to exclude from a backup plan."
type = list(string)
default = []
}
variable "selection_tags" {
description = "A list of selection tags map"
type = list(any)
default = []
}
variable "advanced_backup_settings" {
description = "An object that specifies backup options for each resource type"
type = any
default = []
}
#################
# AWS Backup vault
#################
variable "vault_name" {
description = "Name of the backup vault to create. If not given, AWS use default"
type = string
default = null
}
variable "vault_kms_key_arn" {
description = "The server-side encryption key that is used to protect your backups"
type = string
default = null
}
variable "tags" {
description = "A mapping of tags to assign to the resource"
type = map(string)
default = {}
}
variable "vault_force_destroy" {
description = "A boolean that indicates that all recovery points stored in the vault are deleted so that the vault can be destroyed without error."
type = bool
default = false
}
################
# AWS Backup SNS Notifications
################
variable "enable_sns_notifications" {
description = "Enable Backup Vault Notifications"
type = bool
default = false
}
variable "create_sns_topic" {
description = "Create SNS Topic"
type = bool
default = true
}
variable "sns_topic_arn" {
description = "The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events"
type = string
default = null
}
variable "vault_sns_kms_key_arn" {
description = "The server-side encryption key that is used to protect SNS messages for backups"
type = string
default = null
}
variable "backup_vault_events" {
description = "An array of events that indicate the status of jobs to back up resources to the backup vault."
type = list(string)
default = [
"BACKUP_JOB_STARTED",
"BACKUP_JOB_COMPLETED",
"BACKUP_JOB_SUCCESSFUL",
"BACKUP_JOB_FAILED",
"BACKUP_JOB_EXPIRED",
"RESTORE_JOB_STARTED",
"RESTORE_JOB_COMPLETED",
"RESTORE_JOB_SUCCESSFUL",
"RESTORE_JOB_FAILED",
"COPY_JOB_STARTED",
"COPY_JOB_SUCCESSFUL",
"COPY_JOB_FAILED",
"RECOVERY_POINT_MODIFIED",
"BACKUP_PLAN_CREATED",
"BACKUP_PLAN_MODIFIED"
]
}