Provisioning a network using the public module
Google maintains the Google Cloud Terraform network module (https://registry.terraform.io/modules/terraform-google-modules/network/). It is part of the Cloud Foundation Toolkit (https://cloud.google.com/foundation-toolkit), a set of Terraform modules that follow Google Cloud best practices.
The starting point for using any public module is documentation. A well-written module includes clear and concise documentation and examples for various use cases. For example, the networ
k module contains sections for inputs, outputs, dependencies, resources used, and examples of common use cases. These examples are stored in a public GitHub repository so that we can examine them. Public modules are written to cater to many different requirements and can contain many variables and configurations. Thus, it’s important to study the different configurations and input requirements. Furthermore, some modules have submodules that can be used independently...