File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ resource "aws_elasticache_cluster" "redis" {
30
30
maintenance_window = " ${ var . maintenance_window } "
31
31
node_type = " ${ var . instance_type } "
32
32
num_cache_nodes = " 1"
33
- parameter_group_name = " default.redis2.8 "
33
+ parameter_group_name = " ${ var . parameter_group_name } "
34
34
port = " 6379"
35
35
subnet_group_name = " ${ aws_elasticache_subnet_group . default . name } "
36
36
security_group_ids = [" ${ aws_security_group . redis . id } " ]
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ module "elasticache_redis" {
33
33
- ` instance_type ` - Instance type for cache instance (default: ` cache.m3.medium ` )
34
34
- ` maintenance_window ` - 60 minute time window to reserve for maintenance
35
35
(default: ` sun:05:00-sun:06:00 ` )
36
+ - ` parameter_group_name ` - Name of the parameter group to associate with this cache cluster (default: ` default.redis2.8 ` )
36
37
- ` tag_name `
37
38
- ` tag_environment `
38
39
- ` tag_team `
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ variable "engine_version" {
8
8
default = " 2.8.24"
9
9
}
10
10
11
+ variable "parameter_group_name" {
12
+ default = " default.redis2.8"
13
+ }
14
+
11
15
variable "instance_type" {
12
16
default = " cache.m3.medium"
13
17
}
You can’t perform that action at this time.
0 commit comments