google_bigquery_reservation

A reservation is a mechanism used to guarantee BigQuery slots to users.

To get more information about Reservation, see:

Open in Cloud Shell

Example Usage - Bigquery Reservation Basic

resource "google_bigquery_reservation" "reservation" {
    name           = "my-reservation"
    location       = "us-west2"
    // Set to 0 for testing purposes
    // In reality this would be larger than zero
    slot_capacity     = 0
    edition = "STANDARD"
    ignore_idle_slots = true
    concurrency       = 0
    autoscale {
      max_slots = 100
    }
}

Argument Reference

The following arguments are supported:


The autoscale block supports:

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

Reservation can be imported using any of these accepted formats:

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

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

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

$ terraform import google_bigquery_reservation.default projects/{{project}}/locations/{{location}}/reservations/{{name}}
$ terraform import google_bigquery_reservation.default {{project}}/{{location}}/{{name}}
$ terraform import google_bigquery_reservation.default {{location}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.