Complete the code to specify the root node type for a GCP Organization.
resource "google_folder" "example" { display_name = "My Folder" parent = "[1]/123456789" }
The root node for an Organization in GCP is referenced by "organizations" followed by the organization ID.
Complete the code to define the organization ID in a Terraform variable.
variable "org_id" { type = string description = "The GCP Organization ID" default = "[1]" }
The organization ID is a numeric string identifying the GCP Organization, like "123456789012".
Fix the error in the resource parent reference to correctly link to the organization node.
resource "google_project" "my_project" { name = "My Project" project_id = "my-project-123" organization_id = "[1]" parent = "organizations/123456789012" }
The correct attribute to specify the organization ID in a google_project resource is "organization_id".
Fill both blanks to create a folder under the organization node with the correct parent path and display name.
resource "google_folder" "my_folder" { display_name = "[1]" parent = "[2]/123456789012" }
The folder display name can be any string like "Engineering". The parent must be the organization node "organizations/ORG_ID".
Fill all three blanks to define a project with the correct name, parent type, and parent ID under the organization node.
resource "google_project" "my_project" { name = "[1]" project_id = "my-project-123" parent { type = "[2]" id = "[3]" } }
The project name is a string like "My Project". The parent type for an organization is "organization" and the ID is the numeric organization ID.