This message was deleted.
# terraform
s
This message was deleted.
t
since you have a set of things, you want to use
for_each
instead of
count
https://developer.hashicorp.com/terraform/language/meta-arguments/for_each
a
t
Another approach might be to make a custom module, which wraps around the gke cluster module and then adds additional features that you need. In other words, make your own abstraction of what a cluster should look like (possibly with some feature toggles (input variables)). Then you have very simple instantiations of your clusters that are still configurable, but "on your own terms".
s
dynamic providers are not currently possible https://support.hashicorp.com/hc/en-us/articles/6304194229267-Dynamic-provider-configuration
This can be done with https://github.com/mineiros-io/terramate - let me know if you’d like to see an example 🙂
483 Views