Skip to content

Commit 95b0db7

Browse files
Include apply_immediately variable for elasticache-redis replication group (#39)
For changes effective immediately instead of having to wait for the maintenance window.
1 parent 4fdbc26 commit 95b0db7

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

elasticache-redis/replication-group/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Provision a Redis cluster using AWS ElastiCache.
4545
| <a name="input_alarm_actions"></a> [alarm\_actions](#input\_alarm\_actions) | SNS topcis or other actions to invoke for alarms | `list(object({ arn = string }))` | `[]` | no |
4646
| <a name="input_allowed_cidr_blocks"></a> [allowed\_cidr\_blocks](#input\_allowed\_cidr\_blocks) | CIDR blocks allowed to access the database | `list(string)` | `[]` | no |
4747
| <a name="input_allowed_security_group_ids"></a> [allowed\_security\_group\_ids](#input\_allowed\_security\_group\_ids) | Security group allowed to access the database | `list(string)` | `[]` | no |
48+
| <a name="input_apply_immediately"></a> [apply\_immediately](#input\_apply\_immediately) | Set to true to apply changes immediately | `bool` | `false` | no |
4849
| <a name="input_at_rest_encryption_enabled"></a> [at\_rest\_encryption\_enabled](#input\_at\_rest\_encryption\_enabled) | Set to false to disable encryption at rest | `bool` | `true` | no |
4950
| <a name="input_client_security_group_name"></a> [client\_security\_group\_name](#input\_client\_security\_group\_name) | Override the name for the security group; defaults to identifer | `string` | `""` | no |
5051
| <a name="input_create_client_security_group"></a> [create\_client\_security\_group](#input\_create\_client\_security\_group) | Set to false to only use existing security groups | `bool` | `true` | no |

elasticache-redis/replication-group/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
resource "aws_elasticache_replication_group" "this" {
22
replication_group_id = coalesce(var.replication_group_id, var.name)
33

4+
apply_immediately = var.apply_immediately
45
at_rest_encryption_enabled = var.at_rest_encryption_enabled
56
automatic_failover_enabled = local.replica_enabled
67
description = var.description

elasticache-redis/replication-group/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
variable "apply_immediately" {
2+
type = bool
3+
description = "Set to true to apply changes immediately"
4+
default = false
5+
}
6+
17
variable "alarm_actions" {
28
type = list(object({ arn = string }))
39
description = "SNS topcis or other actions to invoke for alarms"

0 commit comments

Comments
 (0)