Google Cloud VPC Setup
What is a VPC?
Virtual Private Clouds are virtual networks in GCP. They're most commonly used to allow services to communicate with each other. VPCs allow you to control access to services and resources you host on GCP, and the firewall and routing systems prevent unauthorized network access.
Basic VPC Setup Guide
- Open the Google Cloud Console (opens in a new tab).
- Open "VPC networks" from the search bar.
- Click "Create VPC Network" from the title bar.
- Name your VPC (name can only contain letters, numbers, and -)
- Add a new subnet
- Subnets are a complex subject, for this guide just make sure the IP range isn't already used within your organization / network.
- Name your subnet something relevant to the VPC. Example: VPC-NAME-1
- Select your preferred GCP region. Example: us-central1
- Pick an IPv4 range, these will be the IP addresses assigned to services in the VPC. Make sure the range is available in your network. If you're unfamiliar CIDR notation, 10.25.0.0/24 would be 10.25.0.0 to 10.25.0.255.
- Enable "Flow logs" for additional security.
- Click "Create" to complete the process.
Now you will be able to assign services to your VPC from the configuration UI of those services.