-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support no read-replication for Memorystore [DEVOP-4801] #18
feat: Support no read-replication for Memorystore [DEVOP-4801] #18
Conversation
Terraform Format and Style 🖌
|
f96bb6a
to
175b7a1
Compare
Terraform Format and Style 🖌
|
38c6fe9
175b7a1
to
38c6fe9
Compare
Terraform Format and Style 🖌
|
38c6fe9
to
733267d
Compare
Terraform Format and Style 🖌
|
condition = var.replicas >= 1 && var.replicas <= 5 | ||
error_message = "The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 1." | ||
condition = var.replicas <= 5 | ||
error_message = "The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 0 as the default is zero read-replicas." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since 1.9 you can do cross input variable references in input validations. So can make conditional based on the tier here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice, that's nice to know. I rewrote the validations as preconditions on the resource.
733267d
to
314cb98
Compare
Terraform Format and Style 🖌
|
Refs: #DEVOP-4801 Signed-off-by: Christian Witts <christian@honestbank.com>
314cb98
to
8087bcb
Compare
Terraform Format and Style 🖌
|
@@ -13,11 +13,14 @@ resource "random_id" "instance_suffix" { | |||
} | |||
|
|||
module "private_network" { | |||
#checkov:skip=CKV_TF_1:We use the version tag instead of the commit hash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we skip examples for checkov?
Pull Request Submission Checklist
Please confirm that you have done the following before requesting reviews:
Description
In order to right-size the current Memorystore instances, we need to not
enforce read-replica contraints as at minimum you require 5GB in order
to enable a read-replica, yet current production instances are utilising
less than 1GB.
Refs: #DEVOP-4801
Signed-off-by: Christian Witts christian@honestbank.com
This change is