Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticache Cluster: Add parameter name variable #48

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading