-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
variables.tf
137 lines (115 loc) · 3.27 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
variable "vpc_id" {
type = string
default = ""
description = "VPC ID"
}
variable "max_item_size" {
type = number
default = 10485760
description = "Max item size"
}
variable "subnets" {
type = list(string)
default = []
description = "AWS subnet ids"
}
variable "network_type" {
type = string
default = "ipv4"
description = "The network type of the cluster. Valid values: ipv4, ipv6, dual_stack."
}
variable "maintenance_window" {
type = string
default = "wed:03:00-wed:04:00"
description = "Maintenance window"
}
variable "cluster_size" {
type = number
default = 1
description = "Cluster size"
}
variable "instance_type" {
type = string
default = "cache.t2.micro"
description = "Elastic cache instance type"
}
variable "engine_version" {
type = string
default = "1.5.16"
description = "Memcached engine version. For more info, see https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/supported-engine-versions.html"
}
variable "notification_topic_arn" {
type = string
default = ""
description = "Notification topic arn"
}
variable "alarm_cpu_threshold_percent" {
type = number
default = 75
description = "CPU threshold alarm level"
}
variable "alarm_memory_threshold_bytes" {
type = number
default = 10000000 # 10MB
description = "Alarm memory threshold bytes"
}
variable "alarm_actions" {
type = list(string)
default = []
description = "Alarm actions"
}
variable "apply_immediately" {
type = bool
default = true
description = "Specifies whether any database modifications are applied immediately, or during the next maintenance window"
}
variable "availability_zone" {
type = string
default = ""
description = "The Availability Zone of the cluster. az_mode must be set to single-az when used."
}
variable "availability_zones" {
type = list(string)
default = []
description = "List of Availability Zones for the cluster. az_mode must be set to cross-az when used."
}
variable "az_mode" {
type = string
default = "single-az"
description = "Enable or disable multiple AZs, eg: single-az or cross-az"
}
variable "zone_id" {
type = string
default = ""
description = "Route53 DNS Zone ID"
}
variable "dns_subdomain" {
type = string
default = ""
description = "The subdomain to use for the CNAME record. If not provided then the CNAME record will use var.name."
}
variable "port" {
type = number
default = 11211
description = "Memcached port"
}
variable "elasticache_subnet_group_name" {
type = string
description = "Subnet group name for the ElastiCache instance"
default = ""
}
variable "elasticache_parameter_group_family" {
type = string
description = "ElastiCache parameter group family"
default = "memcached1.5"
}
variable "cloudwatch_metric_alarms_enabled" {
type = bool
description = "Boolean flag to enable/disable CloudWatch metrics alarms"
default = false
}
variable "transit_encryption_enabled" {
type = bool
description = "Boolean flag to enable transit encryption (requires Memcached version 1.6.12+)"
default = false
}