A Parallelstore Instance.
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
}
The following arguments are supported:
capacity_gib
-
(Required)
Immutable. Storage capacity of Parallelstore instance in Gibibytes (GiB).
location
-
(Required)
Part of parent
. See documentation of projectsId
.
instance_id
-
(Required)
The logical name of the Parallelstore instance in the user project with the following restrictions:
description
-
(Optional)
The description of the instance. 2048 characters or less.
labels
-
(Optional)
Cloud Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies. Cloud Labels can be used to filter collections of
resources. They can be used to control how resource metrics are aggregated.
And they can be used as arguments to policy management rules (e.g. route,
firewall, load balancing, etc.).
a-z{0,62}
.[a-z0-9_-]{0,63}
.effective_labels
for all of the labels present on the resource.network
-
(Optional)
Immutable. The name of the Google Compute Engine
VPC network to which the
instance is connected.
reserved_ip_range
-
(Optional)
Immutable. Contains the id of the allocated IP address range associated with the
private service access connection for example, "test-default" associated
with IP range 10.0.0.0/29. If no range id is provided all ranges will be
considered.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/locations/{{location}}/instances/{{instance_id}}
name
-
The resource name of the instance, in the format
projects/{project}/locations/{location}/instances/{instance_id}
state
-
The instance state.
Possible values:
STATE_UNSPECIFIED
CREATING
ACTIVE
DELETING
FAILED
create_time
-
The time when the instance was created.
update_time
-
The time when the instance was updated.
daos_version
-
The version of DAOS software running in the instance
access_points
-
List of access_points.
Contains a list of IPv4 addresses used for client side configuration.
effective_reserved_ip_range
-
Immutable. Contains the id of the allocated IP address range associated with the
private service access connection for example, "test-default" associated
with IP range 10.0.0.0/29. This field is populated by the service and
and contains the value currently used by the service.
terraform_labels
-
The combination of labels configured directly on the resource
and default labels configured on the provider.
effective_labels
-
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.Instance can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/instances/{{instance_id}}
{{project}}/{{location}}/{{instance_id}}
{{location}}/{{instance_id}}
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}}
This resource supports User Project Overrides.