-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
118 lines (102 loc) · 3.21 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
variable "rds_db_identifiers" {
description = "The list of RDS database identifiers to monitor."
type = list(string)
}
variable "rds_db_type" {
description = "The type of the RDS database: 'instance' for RDS instance or 'cluster' for RDS cluster."
type = string
validation {
condition = contains(["instance", "cluster"], var.rds_db_type)
error_message = "[Error] Unsupported RDS database type supplied."
}
default = "instance"
}
variable "rds_db_instance_events" {
description = "List of RDS instance-related events to monitor."
type = list(string)
default = [
"DeleteDBInstance",
"ModifyDBInstance",
"RebootDBInstance",
"CreateDBSnapshot",
"DeleteDBSnapshot",
"RestoreDBInstanceFromDBSnapshot"
]
}
variable "rds_db_cluster_events" {
description = "List of RDS cluster-related events to monitor."
type = list(string)
default = [
"CreateDBCluster",
"DeleteDBCluster",
"ModifyDBCluster",
"CreateDBClusterSnapshot",
"DeleteDBClusterSnapshot",
"RestoreDBClusterFromS3",
"FailoverDBCluster",
"AddRoleToDBCluster",
"RemoveRoleFromDBCluster"
]
}
variable "rds_db_parameter_group_events" {
description = "List of RDS parameter group-related events to monitor."
type = list(string)
default = [
"CreateDBParameterGroup",
"DeleteDBParameterGroup",
"ModifyDBParameterGroup"
]
}
variable "rds_db_security_group_events" {
description = "List of RDS security group-related events to monitor."
type = list(string)
default = [
"CreateDBSecurityGroup",
"DeleteDBSecurityGroup",
"ModifyDBSecurityGroup"
]
}
variable "cw_log_group_name" {
description = "The name of the CloudWatch log group storing CloudTrail logs."
type = string
}
variable "cw_metric_filter_namespace" {
description = "The namespace for the CloudWatch metric filter."
type = string
default = "RDS/Monitoring"
}
variable "cw_metric_filter_value" {
description = "The value to publish to the CloudWatch metric."
type = string
default = "1"
}
variable "cw_metric_filter_alarm_comparison_operator" {
description = "The comparison operator for the CloudWatch metric filter alarm."
type = string
default = "GreaterThanOrEqualToThreshold"
}
variable "cw_metric_filter_alarm_evaluation_periods" {
description = "The number of periods over which data is compared to the specified threshold."
type = number
default = 1
}
variable "cw_metric_filter_alarm_period" {
description = "The period in seconds over which the specified statistic is applied."
type = number
default = 300
}
variable "cw_metric_filter_alarm_statistic" {
description = "The statistic to apply to the alarm's associated metric."
type = string
default = "Sum"
}
variable "cw_metric_filter_alarm_threshold" {
description = "The value against which the specified statistic is compared."
type = number
default = 1
}
variable "cw_metric_filter_alarm_actions" {
description = "The list of actions to execute when the alarm transitions into an ALARM state from any other state."
type = list(string)
default = []
}