google_parallelstore_instance

A Parallelstore Instance.

Open in Cloud Shell

Example Usage - Parallelstore Instance Basic

resource "google_parallelstore_instance" "instance" {
  instance_id = "instance"
  location = "us-central1-a"
  description = "test instance"
  capacity_gib = 12000
  network = google_compute_network.network.name

  labels = {
    test = "value"
  }
  provider = google-beta
  depends_on = [google_service_networking_connection.default]
}

resource "google_compute_network" "network" {
  name                    = "network"
  auto_create_subnetworks = true
  mtu = 8896
  provider = google-beta
}



# Create an IP address
resource "google_compute_global_address" "private_ip_alloc" {
  name          = "address"
  purpose       = "VPC_PEERING"
  address_type  = "INTERNAL"
  prefix_length = 24
  network       = google_compute_network.network.id
  provider = google-beta
}

# Create a private connection
resource "google_service_networking_connection" "default" {
  network                 = google_compute_network.network.id
  service                 = "servicenetworking.googleapis.com"
  reserved_peering_ranges = [google_compute_global_address.private_ip_alloc.name]
  provider = google-beta
}

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

Instance can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{location}}/instances/{{instance_id}}"
  to = google_parallelstore_instance.default
}

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

$ terraform import google_parallelstore_instance.default projects/{{project}}/locations/{{location}}/instances/{{instance_id}}
$ terraform import google_parallelstore_instance.default {{project}}/{{location}}/{{instance_id}}
$ terraform import google_parallelstore_instance.default {{location}}/{{instance_id}}

User Project Overrides

This resource supports User Project Overrides.