-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
can't provision a cluster with less than than 2 "zones" #43
Comments
I don't think it's supported to have a regional cluster with a single zone. For that case, I think you would want to create a zonal cluster, as per this example: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/tree/master/examples/simple_zonal |
@morgante Why do you think I want to have a regional cluster? I've set |
I'm hitting this issue as well, although it only started happening after a |
Now I'm seeing this issue on a brand new GCP project (created with project-factory module). |
This interpolation basically looks for a non-existent list element at index
I'm assuming that's part of the issue, since this local variable ends up with no zones instead of the singular zone provided to the module's
|
Thanks for identifying the issue - that does indeed look like what needs to be fixed. |
Potential fix in: #50 |
#50 works for me. |
With code as pasted in the bottom-most section of this ticket, which seems valid as per your docs and examples, I'm getting the following error at
terraform plan
:Why is user forced to specify more than 1 zone? This is supposed to be a generic module after all.
The text was updated successfully, but these errors were encountered: