You can use the following example to deploy a sample internal passthrough Network Load Balancer.
If you are new to using Terraform for Google Cloud, see Get started with Terraform .
Internal passthrough Network Load Balancer with no backends
You can use a Terraform module to bring up a minimal internal passthrough Network Load Balancer with a Virtual Private Cloud network, subnetwork, and all of the necessary load balancing components, but no backends. This can be useful if you already have some other script or process for creating your backends.
For information about this example and to learn how to run it, see the README in GitHub.
Internal passthrough Network Load Balancer with managed instance group backend
You can use Terraform resources to bring up an internal passthrough Network Load Balancer with a managed instance group backend.