GCP Instance Group

Good day!

We have a Terraform script that builds a load-balancer, in GCP, which is working great but have hit a little snag. At times we need to update the VMs that are in the Instance Group which is performed as a destroy/create by Terraform but they do not get added back into the group. Is there anything we can do in Terraform to automatically do this for us instead of manually adding them back in? Maybe creating a dependency between the VM resources and the instance group?

Thank you in advance.

Have a look at the medium post below for a detailed explanation.


1 Like

Fantastic. Thank you :+1: