0
0
GCPcloud~30 mins

Cloud Interconnect for dedicated connections in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
Cloud Interconnect for Dedicated Connections
📖 Scenario: You work for a company that needs a fast and secure connection between its on-premises data center and Google Cloud. You will set up a Cloud Interconnect dedicated connection to link the two networks.
🎯 Goal: Build a Cloud Interconnect dedicated connection configuration using Google Cloud SDK commands and configuration variables.
📋 What You'll Learn
Create a variable for the Interconnect name with the exact value 'my-dedicated-interconnect'
Create a variable for the location with the exact value 'equinix-nyc'
Create a variable for the VLAN attachment name with the exact value 'my-vlan-attachment'
Create a variable for the VLAN ID with the exact value 1234
Use gcloud commands to create the Interconnect and VLAN attachment with the above variables
💡 Why This Matters
🌍 Real World
Companies use Cloud Interconnect dedicated connections to securely and quickly connect their private data centers to Google Cloud, improving performance and security.
💼 Career
Cloud engineers and network administrators often configure and manage Cloud Interconnects to ensure reliable hybrid cloud connectivity.
Progress0 / 4 steps
1
Create Interconnect variables
Create a variable called interconnect_name and set it to the string 'my-dedicated-interconnect'. Also create a variable called location and set it to the string 'equinix-nyc'.
GCP
Need a hint?

Use simple assignment statements to create the variables with the exact names and values.

2
Add VLAN attachment variables
Create a variable called vlan_attachment_name and set it to the string 'my-vlan-attachment'. Also create a variable called vlan_id and set it to the integer 1234.
GCP
Need a hint?

Use assignment statements with the exact variable names and values.

3
Create the Interconnect using gcloud command
Write a string variable called create_interconnect_cmd that contains the exact gcloud command to create a dedicated Interconnect with the name interconnect_name and location location. The command should be: gcloud compute interconnects create my-dedicated-interconnect --location=equinix-nyc --type=DEDICATED but use the variables instead of hardcoded strings.
GCP
Need a hint?

Use an f-string to insert the variables into the command string.

4
Create the VLAN attachment command
Write a string variable called create_vlan_attachment_cmd that contains the exact gcloud command to create a VLAN attachment with the name vlan_attachment_name, interconnect interconnect_name, and VLAN ID vlan_id. The command should be: gcloud compute interconnects attachments create my-vlan-attachment --interconnect=my-dedicated-interconnect --vlan=1234 --region=us-east1 but use the variables and the region us-east1 exactly as shown.
GCP
Need a hint?

Use an f-string to build the VLAN attachment command with the exact region 'us-east1'.