Skip to content

Commit 285bd6d

Browse files
committed
chore: support transit_encryption_enabled for Redis Engine
1 parent b20a4be commit 285bd6d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ No modules.
464464
| <a name="input_subnet_ids"></a> [subnet\_ids](#input\_subnet\_ids) | List of VPC Subnet IDs for the Elasticache subnet group | `list(string)` | `[]` | no |
465465
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no |
466466
| <a name="input_timeouts"></a> [timeouts](#input\_timeouts) | Define maximum timeout for creating, updating, and deleting cluster resource | `map(string)` | `{}` | no |
467-
| <a name="input_transit_encryption_enabled"></a> [transit\_encryption\_enabled](#input\_transit\_encryption\_enabled) | Enable encryption in-transit. Supported only with Memcached versions `1.6.12` and later, running in a VPC | `bool` | `true` | no |
467+
| <a name="input_transit_encryption_enabled"></a> [transit\_encryption\_enabled](#input\_transit\_encryption\_enabled) | Enable encryption in-transit. Supported on replication groups running Valkey 7.2 and later, and Redis OSS versions 3.2.6, 4.0.10 and later, running in a VPC | `bool` | `true` | no |
468468
| <a name="input_transit_encryption_mode"></a> [transit\_encryption\_mode](#input\_transit\_encryption\_mode) | A setting that enables clients to migrate to in-transit encryption with no downtime. Valid values are preferred and required | `string` | `null` | no |
469469
| <a name="input_user_group_ids"></a> [user\_group\_ids](#input\_user\_group\_ids) | User Group ID to associate with the replication group. Only a maximum of one (1) user group ID is valid | `list(string)` | `null` | no |
470470
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | Identifier of the VPC where the security group will be created | `string` | `null` | no |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ resource "aws_elasticache_cluster" "this" {
5353
snapshot_retention_limit = local.in_replication_group ? null : var.snapshot_retention_limit
5454
snapshot_window = local.in_replication_group ? null : var.snapshot_window
5555
subnet_group_name = local.in_replication_group ? null : local.subnet_group_name
56-
transit_encryption_enabled = var.engine == "memcached" ? var.transit_encryption_enabled : null
56+
transit_encryption_enabled = var.transit_encryption_enabled
5757

5858
tags = local.tags
5959

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ 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. Supported on replication groups running Valkey 7.2 and later, and Redis OSS versions 3.2.6, 4.0.10 and later, running in a VPC"
180180
type = bool
181181
default = true
182182
}

wrappers/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ module "wrapper" {
77
at_rest_encryption_enabled = try(each.value.at_rest_encryption_enabled, var.defaults.at_rest_encryption_enabled, true)
88
auth_token = try(each.value.auth_token, var.defaults.auth_token, null)
99
auth_token_update_strategy = try(each.value.auth_token_update_strategy, var.defaults.auth_token_update_strategy, null)
10-
auto_minor_version_upgrade = try(each.value.auto_minor_version_upgrade, var.defaults.auto_minor_version_upgrade, null)
1110
automatic_failover_enabled = try(each.value.automatic_failover_enabled, var.defaults.automatic_failover_enabled, null)
11+
auto_minor_version_upgrade = try(each.value.auto_minor_version_upgrade, var.defaults.auto_minor_version_upgrade, null)
1212
availability_zone = try(each.value.availability_zone, var.defaults.availability_zone, null)
1313
az_mode = try(each.value.az_mode, var.defaults.az_mode, null)
1414
cluster_id = try(each.value.cluster_id, var.defaults.cluster_id, "")

0 commit comments

Comments
 (0)