diff --git a/main.tf b/main.tf index 206132c..ad579de 100644 --- a/main.tf +++ b/main.tf @@ -142,6 +142,7 @@ resource "aws_elasticache_replication_group" "default" { snapshot_retention_limit = var.snapshot_retention_limit final_snapshot_identifier = var.final_snapshot_identifier apply_immediately = var.apply_immediately + data_tiering_enabled = var.data_tiering_enabled dynamic "log_delivery_configuration" { for_each = var.log_delivery_configuration diff --git a/variables.tf b/variables.tf index 4e105d3..ac923a3 100644 --- a/variables.tf +++ b/variables.tf @@ -112,6 +112,12 @@ variable "apply_immediately" { description = "Apply changes immediately" } +variable "data_tiering_enabled" { + type = bool + default = false + description = "Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. See: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticache_replication_group#data_tiering_enabled" +} + variable "automatic_failover_enabled" { type = bool default = false