Skip to content

Commit

Permalink
Elasticache Cluster: Add parameter name variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ghill95 committed Mar 11, 2024
1 parent a9cce05 commit a4894e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resource-groups/elasticache-redis/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "aws_elasticache_cluster" "cluster" {
engine = "redis"
node_type = var.node_type
num_cache_nodes = var.num_cache_nodes
parameter_group_name = "default.redis6.x"
parameter_group_name = var.elasticache_cluster_parameter_group_name
engine_version = var.engine_version
port = 6379
security_group_ids = [aws_security_group.cluster.id]
Expand Down
6 changes: 6 additions & 0 deletions resource-groups/elasticache-redis/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ variable "elasticache_cluster_apply_immediately" {
default = false
}

variable "elasticache_cluster_parameter_group_name" {
type = string
description = "The Parameter Group Name for the Elasticache cluster (defaults to default.redis6.x)"
default = "default.redis6.x"
}

variable "engine_version" {
type = string
description = "Version of Redis engine"
Expand Down

0 comments on commit a4894e2

Please sign in to comment.