-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
56 lines (48 loc) · 1.41 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
variable "bucket_suffix" {
type = bool
description = "Adds a random suffix to the bucket name."
default = false
}
variable "cloudwatch_log_retention" {
type = number
description = "Number of days to retain logs in CloudWatch."
default = 30
}
variable "environment" {
type = string
description = "Environment for the deployment."
default = "dev"
}
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 "log_groups" {
type = map(object({
name = optional(string, "")
class = optional(string, "STANDARD")
retention = optional(number, null)
tags = optional(map(string), {})
}))
description = "List of CloudWatch log groups to create."
default = {}
}
variable "log_groups_to_datadog" {
type = bool
description = "Send CloudWatch logs to Datadog. The Datadog forwarder must have already been deployed."
default = true
}
variable "project" {
type = string
description = "Project that these resources are supporting."
}
variable "tags" {
type = map(string)
description = "Tags to apply to all resources."
default = {}
}