-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
72 lines (55 loc) · 1.62 KB
/
variables.tf
File metadata and controls
72 lines (55 loc) · 1.62 KB
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
variable "service_name" {
description = "Name of the service that is using this elasticache"
type = string
}
variable "engine" {
description = "The caching engine to use. Valid values are 'redis' or 'valkey'"
type = string
default = "valkey"
validation {
condition = var.engine == "redis" || var.engine == "valkey"
error_message = "Engine must be either 'redis' or 'valkey'."
}
}
variable "security_group_ids" {
description = "Security Groups that are allowed to access the cluster"
type = list(string)
}
variable "vpc_id" {
description = "The ID of the VPC the ElastiCache cluster will be in"
type = string
}
variable "subnet_ids" {
description = "Subnets where the elasticache will be placed"
type = list(string)
}
variable "node_type" {
description = "Instance type for the nodes"
type = string
default = "cache.t4g.small"
}
variable "availability_zones" {
description = "Availability zones to run in"
type = list(string)
default = []
}
variable "engine_version" {
description = "The version of redis to use"
type = string
default = "8.2"
}
variable "parameter_group_name" {
description = "Parameter group to use for the engine"
type = string
default = "default.valkey8"
}
variable "user_group_ids" {
description = "User Group ID to associate with the replication group (Optional)"
type = list(string)
default = null
}
variable "apply_immediately" {
description = "Apply changes immediately. Set to true when changing any attributes. Can cause downtime."
type = bool
default = false
}