We are creating a GKE cluster using Terraform module and then deploying Istio on top of it using modules. But before deploying Istio we need to update the gke-<cluster-name>-<cluster-hash>-master
firewall rule which is automatically created with the cluster, to open ports 15017 and 15021 to the target nodes. Is there a way to do it natively via terraform i.e. after creating the GKE cluster, the same terraform template should be able to update the firewall rules subsequently?
We are facing challenges to fetch and create strings locally for the below:
Master firewall rule name - gke-cluster-b00977fd-master
Target node tags - gke-cluster-b00977fd-node
If we are able to create these strings then we will be able to update or create a desired firewall rule.