google_bigquery_reservation_assignment

The BigqueryReservation Assignment resource

Example Usage - basic

resource "google_bigquery_reservation" "basic" {
  name  = "tf-test-my-reservation%{random_suffix}"
  project = "my-project-name"
  location = "us-central1"
  slot_capacity = 0
  ignore_idle_slots = false
}

resource "google_bigquery_reservation_assignment" "primary" {
  assignee  = "projects/my-project-name"
  job_type = "PIPELINE"
  reservation = google_bigquery_reservation.basic.id
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Assignment can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Assignment using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{location}}/reservations/{{reservation}}/assignments/{{name}}"
  to = google_bigquery_reservation_assignment.default
}

When using the terraform import command, Assignment can be imported using one of the formats above. For example:

$ terraform import google_bigquery_reservation_assignment.default projects/{{project}}/locations/{{location}}/reservations/{{reservation}}/assignments/{{name}}
$ terraform import google_bigquery_reservation_assignment.default {{project}}/{{location}}/{{reservation}}/{{name}}
$ terraform import google_bigquery_reservation_assignment.default {{location}}/{{reservation}}/{{name}}