Connecting to GCP
Connecting to GCP resources from a DevZero workspace.
If you're more of a visual learner, check out the video tutorial!
Create a VPC
Here we are using 10.0.1.0/24 for public subnet range and 10.0.2.0/24 for private subnet range. Customize the IPv4 CIDR block if needed.
After the VPC network creation, go to VPC-Name > Firewalls. Select Add Firewall Rule and then enter the rule name, and source IP range (Source = 0.0.0.0/0).
After that you will be asked to select the ingress ports and protocols. Allow inbound SSH (Port range = 22). We’ll need this during initial setup but can close the firewall later.
Create a Bastion Host
SSH into the machine and Install the DevZero CLI from the script:
Log into your account by executing:
Enable IP forwarding to access resources on VPC CIDR:
Connect to DevZero network:
Verify that the machine is connected to your DevZero network:
You should see the GCP virtual machine hostname.