In the GCP, VPCs are the main networking construct that are used to group all our resources. We can think of them as a virtual data center in the cloud. We need to define our VPCs in order to prepare our cloud environment to host our applications. In this recipe, we will outline how to define and provision a VPC in GCP.
Creating GCP VPC networks
Getting ready
The Ansible control machine must be connected to the internet with reachability to GCP public API endpoints, and the GCP account should be configured as outlined in the previous recipes.
How to do it...
- Create a...