-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Updating validation blocking single-AZ ES clusters when Zone Awareness is disabled #159
Conversation
valid values for
|
You guys do not pin module versions to TF versions, meaning we could need the latest module (eg for EBS GP3) and not care about which Maybe remove the check and let AWS respond with an error a la GraphQL? |
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.
This seems unnecessary to me. I would need to see added testing before I would approve this.
Users should be able to set zone_awareness_enabled
to false
and leave availability_zone_count
unset and defaulted to 2, or set to 2 if the configuration of the root module makes leaving it unset too difficult.
Working on this, give me a few |
Interesting point: Would there ever be a chance you would want Zone Awareness disabled with more than 1 AZ? |
@@ -124,8 +124,8 @@ variable "availability_zone_count" { | |||
description = "Number of Availability Zones for the domain to use." | |||
|
|||
validation { | |||
condition = contains([2, 3], var.availability_zone_count) | |||
error_message = "The availibility zone count must be 2 or 3." | |||
condition = contains([2, 3], var.availability_zone_count) && var.zone_awareness_enabled == "true" |
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.
INVALID TERRAFORM: Variable validation conditions can refer only to the containing variable.
Can't we add 1 as a valid count? This seems unnecessarily complex to me. |
what
Removing errant validation preventing the creation of Amazon OpenSearch Service ElasticSearch (ES) or OpenSearch (OS) clusters which live in a single Available Zone on Amazon Web Services (AWS)
Simple Process:
why
Development and testing clusters may not want or need two or more Availability Zones for cost (among other reasons, but FinOps - saving money - is important)
references
#158
Identical errors in internal company environment