From b80ecb7ca1f6f8d3d5ad79a6d6efc223cd67e642 Mon Sep 17 00:00:00 2001 From: Clarissa Borges Date: Tue, 1 Jul 2025 16:00:35 -0300 Subject: [PATCH 1/2] Include apply_immediately variable for elasticache-redis replication group For changes effective immediately instead of having to wait for the maintenance window. --- elasticache-redis/replication-group/main.tf | 1 + elasticache-redis/replication-group/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/elasticache-redis/replication-group/main.tf b/elasticache-redis/replication-group/main.tf index f4164ec..5fbde6f 100644 --- a/elasticache-redis/replication-group/main.tf +++ b/elasticache-redis/replication-group/main.tf @@ -1,6 +1,7 @@ resource "aws_elasticache_replication_group" "this" { replication_group_id = coalesce(var.replication_group_id, var.name) + apply_immediately = var.apply_immediately at_rest_encryption_enabled = var.at_rest_encryption_enabled automatic_failover_enabled = local.replica_enabled description = var.description diff --git a/elasticache-redis/replication-group/variables.tf b/elasticache-redis/replication-group/variables.tf index d41553c..30496c9 100644 --- a/elasticache-redis/replication-group/variables.tf +++ b/elasticache-redis/replication-group/variables.tf @@ -1,3 +1,9 @@ +variable "apply_immediately" { + type = bool + description = "Set to true to apply changes immediately" + default = false +} + variable "alarm_actions" { type = list(object({ arn = string })) description = "SNS topcis or other actions to invoke for alarms" From 5d21e8560d730da6dd1cbe4424c6f9f05142b38a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 1 Jul 2025 19:42:44 +0000 Subject: [PATCH 2/2] terraform-docs: automated action --- elasticache-redis/replication-group/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/elasticache-redis/replication-group/README.md b/elasticache-redis/replication-group/README.md index d255ab6..e548217 100644 --- a/elasticache-redis/replication-group/README.md +++ b/elasticache-redis/replication-group/README.md @@ -45,6 +45,7 @@ Provision a Redis cluster using AWS ElastiCache. | [alarm\_actions](#input\_alarm\_actions) | SNS topcis or other actions to invoke for alarms | `list(object({ arn = string }))` | `[]` | no | | [allowed\_cidr\_blocks](#input\_allowed\_cidr\_blocks) | CIDR blocks allowed to access the database | `list(string)` | `[]` | no | | [allowed\_security\_group\_ids](#input\_allowed\_security\_group\_ids) | Security group allowed to access the database | `list(string)` | `[]` | no | +| [apply\_immediately](#input\_apply\_immediately) | Set to true to apply changes immediately | `bool` | `false` | no | | [at\_rest\_encryption\_enabled](#input\_at\_rest\_encryption\_enabled) | Set to false to disable encryption at rest | `bool` | `true` | no | | [client\_security\_group\_name](#input\_client\_security\_group\_name) | Override the name for the security group; defaults to identifer | `string` | `""` | no | | [create\_client\_security\_group](#input\_create\_client\_security\_group) | Set to false to only use existing security groups | `bool` | `true` | no |