QuestionQ40

VerifiedTerraform configuration

The following resource block is displayed in the Exhibit space on this page:

resource “google_compute_instance” “main” \{  
  name = “test”  
\}  

What is the Terraform resource name for this resource block?

Explanation

Terraform resource blocks have the form resource "TYPE" "LABEL". The second label is the resource’s local name, so this resource is named main; name = "test" is a configuration argument. HashiCorp resource block reference

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!