Skip to content

Commit fea701e

Browse files
committed
fix: enable transit mode encryption var as it is now available in redis
1 parent d10bc36 commit fea701e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ resource "aws_elasticache_cluster" "this" {
5858
snapshot_retention_limit = local.in_replication_group ? null : var.snapshot_retention_limit
5959
snapshot_window = local.in_replication_group ? null : var.snapshot_window
6060
subnet_group_name = local.in_replication_group ? null : local.subnet_group_name
61-
transit_encryption_enabled = var.engine == "memcached" ? var.transit_encryption_enabled : null
61+
# this makes it so that the transit encryption is enabled by default for memcached, which prevents a backwards incompatible change
62+
transit_encryption_enabled = var.engine == "memcached" ? true : var.transit_encryption_enabled
6263

6364
tags = local.tags
6465

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ variable "snapshot_window" {
176176
}
177177

178178
variable "transit_encryption_enabled" {
179-
description = "Enable encryption in-transit. Supported only with Memcached versions `1.6.12` and later, running in a VPC"
179+
description = "Enable encryption in-transit."
180180
type = bool
181-
default = true
181+
default = null
182182
}
183183

184184
variable "transit_encryption_mode" {

0 commit comments

Comments
 (0)