-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support no read-replication for Memorystore
Refs: #DEVOP-4801 Signed-off-by: Christian Witts <christian@honestbank.com>
- Loading branch information
1 parent
d569afc
commit f96bb6a
Showing
4 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
locals { | ||
# Generate invalid values to be used so that the module fails based on composite | ||
# scenarios as validation conditions only apply to the variable scoped for the | ||
# validation condition. | ||
memory_size = var.read_replicas_enabled && var.memory_size >= 5 ? var.memory_size : 0 | ||
replicas = var.tier == "STANDARD_HA" ? var.replicas : 0 | ||
replica_count = var.read_replicas_enabled && local.replicas > 0 ? var.replicas : 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters