Skip to content

Commit

Permalink
Elasticache Cluster: Add apply immediately flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ghill95 committed Mar 6, 2024
1 parent 24d274b commit f965f77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions resource-groups/elasticache-redis/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
resource "aws_elasticache_cluster" "cluster" {
apply_immediately = var.elasticache_cluster_apply_immediately
cluster_id = var.cluster_id
engine = "redis"
node_type = var.node_type
Expand Down
6 changes: 6 additions & 0 deletions resource-groups/elasticache-redis/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ variable "cluster_id" {
}
}

variable "elasticache_cluster_apply_immediately" {
type = string
description = "Boolean value to decide whether or not to apply elasticache cluster changes immediately"
default = false
}

variable "engine_version" {
type = string
description = "Version of Redis engine"
Expand Down

0 comments on commit f965f77

Please sign in to comment.