Getting ready

The following are the initial setup verification steps and network creation to be carried out before the recipe can be executed:

  1. Create or select a GCP project.
  2. Enable billing and enable the default APIs (some APIs such as BigQuery, storage, monitoring, and a few others are enabled automatically).
  3. Similar to the previous recipe, we'll create a VPC network called alpha-nw. The following command assumes that you have set your default project:
gcloud compute networks create alpha-nw --subnet-mode=custom
  1. Next, let's create a single subnet called alpha-subnet-1 with an IP range of 192.168.0.0/16:
gcloud compute networks subnets create alpha-subnet-vpn \--network=alpha-nw --region=us-east1 --range=10.1.0.0/16
  1. Similarly, let's ...

Get Google Cloud Platform Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.