Table of Contents
Overview
Labs are timed and cannot be paused. The timer starts when you click Start Lab.
The included cloud terminal is preconfigured with the gcloud SDK.
Use the terminal to execute commands and then click Check my progress to verify your work.
Challenge scenario
As a network administrator, you have been assigned with the responsibility of connecting two Virtual Private Clouds (VPCs) workspace_vpc and private_vpc in your project. This peering connection will establish a direct and secure communication pathway between the resources residing in each VPC, allowing them to interact seamlessly with each other.
Your task is :
Create Peering connection workspace-vpc with private-vpc
Create Peering connection private-vpc with workspace-vpc
Note: To ssh into the vm instance, run the following command:
gcloud compute ssh INSTANCE_NAME --project=PROJECT_ID --zone=INSTANCE_ZONE
Copied!
When asked if you want to continue, enter Y
. When prompted for a passphrase, press ENTER for no passphrase, then ENTER again.
Click Check my progress to verify the objective.
Create Peering connection
Solution of Lab
curl -LO raw.githubusercontent.com/Techcps/Google-Cloud-Skills-Boost/master/Create%20VPC%20Peering%20Connection%20between%20VPCs/techcps.sh
sudo chmod +x techcps.sh
./techcps.sh