-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
171 lines (129 loc) · 4.09 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
variable "name" {
type = string
default = ""
description = "backup Name"
}
variable "enabled" {
type = bool
default = true
description = "backup Name"
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-backup"
description = "Terraform current module repo"
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`application`."
}
variable "managedby" {
type = string
default = "hello@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove'."
}
variable "kms_key_arn" {
type = string
default = ""
description = "The server-side encryption key that is used to protect your backups"
}
variable "schedule" {
type = string
default = null
description = "A CRON expression specifying when AWS Backup initiates a backup job"
}
variable "start_window" {
type = string
default = null
description = "The amount of time in minutes before beginning a backup. Minimum value is 60 minutes"
}
variable "completion_window" {
type = string
default = null
description = "The amount of time AWS Backup attempts a backup before canceling the job and returning an error. Must be at least 60 minutes greater than `start_window`"
}
variable "cold_storage_after" {
type = string
default = null
description = "Specifies the number of days after creation that a recovery point is moved to cold storage"
}
variable "delete_after" {
type = string
default = null
description = "Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`"
}
variable "backup_resources" {
type = list(string)
default = []
description = "An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan"
}
variable "selection_tags" {
type = list(object({
type = string
key = string
value = string
}))
default = []
description = "An array of tag condition objects used to filter resources based on tags for assigning to a backup plan"
}
variable "destination_vault_arn" {
type = string
default = ""
description = "An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup"
}
variable "copy_action_cold_storage_after" {
type = number
default = null
description = "For copy operation, specifies the number of days after creation that a recovery point is moved to cold storage"
}
variable "copy_action_delete_after" {
type = number
default = null
description = "For copy operation, specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `copy_action_cold_storage_after`"
}
variable "plan_name_suffix" {
type = string
default = null
description = "The string appended to the plan name"
}
variable "target_vault_name" {
type = string
default = null
description = "Override target Vault Name"
}
variable "vault_enabled" {
type = bool
default = true
description = "Should we create a new Vault"
}
variable "plan_enabled" {
type = bool
default = true
description = "Should we create a new Plan"
}
variable "iam_role_enabled" {
type = bool
default = true
description = "Should we create a new Iam Role and Policy Attachment"
}
variable "target_iam_role_name" {
type = string
default = null
description = "Override target IAM Role Name"
}
variable "enable_continuous_backup" {
type = bool
default = false
description = "Enable continuous backups for supported resources."
}
variable "aws_backup_vault_policy_enabled" {
type = bool
default = true
description = "The backup vault access policy document in JSON format."
}