Skip to content

Commit

Permalink
Add support for the engine variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JCFFlores committed Jan 3, 2025
1 parent 7cc4d1e commit c0dc0be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ resource "aws_elasticache_replication_group" "default" {
maintenance_window = var.maintenance_window
notification_topic_arn = var.notification_topic_arn
engine_version = var.engine_version
engine = var.engine
at_rest_encryption_enabled = var.at_rest_encryption_enabled
transit_encryption_enabled = var.transit_encryption_enabled
kms_key_id = var.at_rest_encryption_enabled ? var.kms_key_id : null
Expand Down
8 changes: 7 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ variable "parameter" {
variable "engine_version" {
type = string
default = "4.0.10"
description = "Redis engine version"
description = "Redis/Valkey engine version"
}

variable "engine" {
type = string
default = "redis"
description = "Redis or Valkey as a version"
}

variable "at_rest_encryption_enabled" {
Expand Down

0 comments on commit c0dc0be

Please sign in to comment.