Skip to content

Commit 2d362bd

Browse files
committed
Include redis_apply_immediately variable
For changes effective immediately instead of having to wait for the maintenance window.
1 parent 819add4 commit 2d362bd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

redis-variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
variable "redis_apply_immediately" {
2+
description = "Apply changes immediately"
3+
type = bool
4+
default = false
5+
}
6+
17
variable "redis_enabled" {
28
description = "Set to true to enable creation of a Redis instance"
39
type = bool

redis.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module "redis" {
22
count = var.redis_enabled ? 1 : 0
33
source = "github.com/thoughtbot/terraform-aws-databases//elasticache-redis/replication-group?ref=v0.6.2"
44

5+
apply_immediately = var.redis_apply_immediately
56
allowed_cidr_blocks = [module.network.vpc.cidr_block]
67
description = "Redis cluster for ${local.instance_name} jobs"
78
engine_version = var.redis_engine_version

0 commit comments

Comments
 (0)