Skip to content

Commit

Permalink
feat(vertexai): Make it possible to create a public Vertex AI Index E…
Browse files Browse the repository at this point in the history
  • Loading branch information
shotarok authored and simonebruzzechesse committed Sep 7, 2023
1 parent 93ab12f commit 83fb65f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mmv1/products/vertexai/IndexEndpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ examples:
network_name: "network-name"
test_vars_overrides:
network_name: 'acctest.BootstrapSharedTestNetwork(t, "vertex-ai-index-endpoint")'
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_index_endpoint_with_public_endpoint"
primary_resource_id: "index_endpoint"
test_vars_overrides:
network_name: 'acctest.BootstrapSharedTestNetwork(t, "vertex-ai-index-endpoint")'
parameters:
- !ruby/object:Api::Type::String
name: region
Expand Down Expand Up @@ -97,3 +102,12 @@ properties:
[Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): `projects/{project}/global/networks/{network}`.
Where `{project}` is a project number, as in `12345`, and `{network}` is network name.
immutable: true
- !ruby/object:Api::Type::Boolean
name: publicEndpointEnabled
immutable: true
ignore_read: true
description: If true, the deployed index will be accessible through public endpoint.
- !ruby/object:Api::Type::String
name: publicEndpointDomainName
output: true
description: If publicEndpointEnabled is true, this field will be populated with the domain name to use for this index endpoint.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
resource "google_vertex_ai_index_endpoint" "<%= ctx[:primary_resource_id] %>" {
display_name = "sample-endpoint"
description = "A sample vertex endpoint with an public endpoint"
region = "us-central1"
labels = {
label-one = "value-one"
}

public_endpoint_enabled = true
}

0 comments on commit 83fb65f

Please sign in to comment.