-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
45 lines (38 loc) · 1.18 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 "bucket_suffix" {
type = bool
description = "Adds a random suffix to the bucket name to ensure its uniqueness."
default = false
}
variable "environment" {
type = string
default = "dev"
description = "Environment for the deployment."
}
variable "force_delete" {
type = bool
description = "Force delete resources on destroy. This must be set to true and applied before resources can be destroyed."
default = false
}
variable "key_recovery_period" {
type = number
default = 30
description = "Recovery period for deleted KMS keys in days. Must be between 7 and 30."
validation {
condition = var.key_recovery_period > 6 && var.key_recovery_period < 31
error_message = "Recovery period must be between 7 and 30."
}
}
variable "project" {
type = string
description = "Project that these resources are supporting."
}
variable "state_version_expiration" {
type = number
description = "Age (in days) before non-current versions of the state file are expired."
default = 30
}
variable "tags" {
type = map(string)
description = "Tags to apply to all resources."
default = {}
}