0
0
GCPcloud~30 mins

Private Google Access in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
Enable Private Google Access on a GCP Subnet
📖 Scenario: You are setting up a Virtual Private Cloud (VPC) network in Google Cloud Platform (GCP) for a company. The company wants to ensure that virtual machines (VMs) in a specific subnet can access Google APIs and services without using public IP addresses. This is important for security and compliance.
🎯 Goal: Create a subnet in a VPC network and enable Private Google Access on that subnet so that VMs without external IPs can reach Google services privately.
📋 What You'll Learn
Create a VPC network named my-vpc
Create a subnet named my-subnet in region us-central1 with IP range 10.0.0.0/24
Enable Private Google Access on my-subnet
💡 Why This Matters
🌍 Real World
Many organizations require their cloud resources to access Google services securely without exposing public IPs. Private Google Access allows this by routing traffic internally within Google's network.
💼 Career
Cloud engineers and network administrators often configure Private Google Access to meet security policies and compliance requirements in enterprise environments.
Progress0 / 4 steps
1
Create a VPC network named my-vpc
Write a gcloud command to create a custom-mode VPC network called my-vpc.
GCP
Need a hint?

Use gcloud compute networks create with --subnet-mode=custom to create the VPC.

2
Create a subnet named my-subnet in region us-central1 with IP range 10.0.0.0/24
Write a gcloud command to create a subnet called my-subnet in the us-central1 region within the my-vpc network, using the IP range 10.0.0.0/24.
GCP
Need a hint?

Use gcloud compute networks subnets create with the correct network, region, and IP range.

3
Enable Private Google Access on my-subnet
Write a gcloud command to update the subnet my-subnet in us-central1 to enable Private Google Access.
GCP
Need a hint?

Use gcloud compute networks subnets update with --enable-private-ip-google-access to enable Private Google Access.

4
Verify Private Google Access is enabled on my-subnet
Write a gcloud command to describe the subnet my-subnet in us-central1 and confirm that privateIpGoogleAccess is set to true.
GCP
Need a hint?

Use gcloud compute networks subnets describe to check the subnet details.