-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables.tf
78 lines (64 loc) · 1.78 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
variable "cluster_id" {
description = "Cluster ID you want to use"
}
variable "aws_region" {
description = "Region you want to use"
default = "ca-central-1"
}
variable "availability_zone" {
description = "Availability zone you want to use"
default = "ca-central-1a"
}
variable "port" {
description = "Port number you want to use"
default = 6379
}
variable "engine_version" {
description = "Redis engine version you want to use"
default = "2.8.24"
}
variable "node_type" {
description = "Node type you want to use"
default = "cache.m4.large"
}
variable "num_cache_nodes" {
description = "The number of cache nodes you want"
default = 1
}
variable "security_group_ids" {
description = "The security_group ids to attach the instance to"
}
variable "subnet_group_name" {
description = "The subnet to launch the instance into"
}
variable "parameter_group_name" {
default = "default.redis2.8"
}
variable "name" {
description = "Cluster Name"
default = ""
}
variable "alarm_threshold_cpu" {
description = "Threshold for cpu alarm in %"
type = number
default = 80
}
variable "alarm_threshold_memory" {
description = "Memory in percent"
type = number
default = 80
}
variable "alarm_threshold_evictions" {
description = "Threshold for evictions alarm"
type = number
default = 0
}
variable "alarm_threshold_swap" {
description = "Threshold for swap alarm"
type = number
default = 419430400 # 40MB, 80% of recommended 50MB limit
}
variable "alarm_sns_topic" {
description = "SNS Topic used for alarms"
default = "arn:aws:sns:ca-central-1:202758669767:db_alarms" # Configured in DataVPC repo: https://github.com/telus/terraform-openshift-datavpc-main/blob/master/aws-sns-alarms.tf
}