google_vertex_ai_deployment_resource_pool

'DeploymentResourcePool can be shared by multiple deployed models, whose underlying specification consists of dedicated resources.'

To get more information about DeploymentResourcePool, see:

Open in Cloud Shell

Example Usage - Vertex Ai Deployment Resource Pool

resource "google_vertex_ai_deployment_resource_pool" "deployment_resource_pool" {
    region = "us-central1"
    name = "example-deployment-resource-pool"
    dedicated_resources {
        machine_spec {
            machine_type = "n1-standard-4"
            accelerator_type = "NVIDIA_TESLA_K80"
            accelerator_count = 1
        }

        min_replica_count = 1
        max_replica_count = 2

        autoscaling_metric_specs {
            metric_name = "aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle"
            target = 60
        }
    }
}

Argument Reference

The following arguments are supported:


The dedicated_resources block supports:

The machine_spec block supports:

The autoscaling_metric_specs 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

DeploymentResourcePool can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{region}}/deploymentResourcePools/{{name}}"
  to = google_vertex_ai_deployment_resource_pool.default
}

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

$ terraform import google_vertex_ai_deployment_resource_pool.default projects/{{project}}/locations/{{region}}/deploymentResourcePools/{{name}}
$ terraform import google_vertex_ai_deployment_resource_pool.default {{project}}/{{region}}/{{name}}
$ terraform import google_vertex_ai_deployment_resource_pool.default {{region}}/{{name}}
$ terraform import google_vertex_ai_deployment_resource_pool.default {{name}}

User Project Overrides

This resource supports User Project Overrides.