Skip to content

Commit

Permalink
Adds version upgrade variable input to component
Browse files Browse the repository at this point in the history
  • Loading branch information
wavemoran committed Sep 16, 2024
1 parent d791d5a commit 2071d3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/elasticache-redis/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ locals {
transit_encryption_enabled = var.transit_encryption_enabled
apply_immediately = var.apply_immediately
automatic_failover_enabled = var.automatic_failover_enabled
auto_minor_version_upgrade = var.auto_minor_version_upgrade
cloudwatch_metric_alarms_enabled = var.cloudwatch_metric_alarms_enabled
auth_token_enabled = var.auth_token_enabled
}
Expand Down
3 changes: 2 additions & 1 deletion modules/elasticache-redis/modules/redis_cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ locals {

module "redis" {
source = "cloudposse/elasticache-redis/aws"
version = "1.2.2"
version = "1.4.1"

name = var.cluster_name

Expand All @@ -20,6 +20,7 @@ module "redis" {
apply_immediately = var.cluster_attributes.apply_immediately
at_rest_encryption_enabled = var.cluster_attributes.at_rest_encryption_enabled
auth_token = local.auth_token
auto_minor_version_upgrade = var.cluster_attributes.auto_minor_version_upgrade
automatic_failover_enabled = var.cluster_attributes.automatic_failover_enabled
availability_zones = var.cluster_attributes.availability_zones
multi_az_enabled = var.cluster_attributes.multi_az_enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ variable "cluster_attributes" {
transit_encryption_enabled = bool
apply_immediately = bool
automatic_failover_enabled = bool
auto_minor_version_upgrade = bool
auth_token_enabled = bool
})
description = "Cluster attributes"
Expand Down
6 changes: 6 additions & 0 deletions modules/elasticache-redis/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ variable "automatic_failover_enabled" {
description = "Enable automatic failover"
}

variable "auto_minor_version_upgrade" {
type = bool
description = "Specifies whether minor version engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Only supported if the engine version is 6 or higher."
default = false
}

variable "cloudwatch_metric_alarms_enabled" {
type = bool
description = "Boolean flag to enable/disable CloudWatch metrics alarms"
Expand Down

0 comments on commit 2071d3b

Please sign in to comment.