Complete the code to create a Cloud Interconnect resource with a specified name.
resource "google_compute_interconnect" "my_interconnect" { name = "[1]" location = "us-central1" interconnect_type = "DEDICATED" }
The name must be a valid and unique identifier for the interconnect resource. "interconnect-123" is a suitable example.
Complete the code to specify the interconnect type as dedicated.
resource "google_compute_interconnect" "example" { name = "dedicated-conn" location = "us-central1" interconnect_type = "[1]" }
The interconnect_type must be set to "DEDICATED" to create a dedicated Cloud Interconnect connection.
Fix the error in the code by selecting the correct location for the interconnect.
resource "google_compute_interconnect" "conn" { name = "dedicated-conn" location = "[1]" interconnect_type = "DEDICATED" }
The location must be a region, not a zone. "us-central1" is a valid region for Cloud Interconnect.
Fill both blanks to define the bandwidth and admin enabled status for the interconnect.
resource "google_compute_interconnect" "conn" { name = "dedicated-conn" location = "us-central1" interconnect_type = "DEDICATED" bandwidth = "[1]" admin_enabled = [2] }
The bandwidth must be a valid value like "10" or "100". The admin_enabled field is a boolean and should be true or false. Here, "10" and true are correct.
Fill all three blanks to configure the interconnect with a description, customer name, and link type.
resource "google_compute_interconnect" "conn" { name = "dedicated-conn" location = "us-central1" interconnect_type = "DEDICATED" description = "[1]" customer_name = "[2]" link_type = "[3]" }
The description should be a meaningful string describing the interconnect. The customer_name is the name of the customer, here "AcmeCorp". The link_type must be a valid enum string like "LINK_TYPE_ETHERNET_10G_LR".