-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vertex_ai
: add google_vertex_ai_index_endpoint_deployed_index
resource
#11039
base: main
Are you sure you want to change the base?
vertex_ai
: add google_vertex_ai_index_endpoint_deployed_index
resource
#11039
Conversation
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_vertex_ai_index_endpoint_deployed_index" "primary" {
automatic_resources {
max_replica_count = # value needed
min_replica_count = # value needed
}
dedicated_resources {
autoscaling_metric_specs {
metric_name = # value needed
target = # value needed
}
machine_spec {
accelerator_count = # value needed
accelerator_type = # value needed
machine_type = # value needed
tpu_topology = # value needed
}
max_replica_count = # value needed
min_replica_count = # value needed
}
display_name = # value needed
enable_access_logging = # value needed
index = # value needed
region = # value needed
reserved_ip_ranges = # value needed
}
|
Tests analyticsTotal tests: 46 Click here to see the affected service packages
View the build log |
currently it's able to send a request to GCP but returns a 404. This is due to the request wanting an index, which is then used as the 2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: POST /v1/projects/hc-terraform-testing/locations/us-central1/indexEndpoints/3623695656033452032:deployIndex?alt=json HTTP/1.1
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Host: us-central1-aiplatform.googleapis.com
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: User-Agent: Terraform/1.8.0-alpha20240131 (+https://www.terraform.io) Terraform-Plugin-SDK/2.33.0 terraform-provider-google/dev
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Content-Length: 136
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Content-Type: application/json
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Accept-Encoding: gzip
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: {
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: "deployedIndex": {
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: "id": "test_index_public1",
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: "index": "projects/hc-terraform-testing/locations/us-central1/indexes/3623695656033452032"
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: }
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: }
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64
2024-06-27T16:54:14.486-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: -----------------------------------------------------
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: 2024/06/27 16:54:15 [DEBUG] Google API Response Details:
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: ---[ RESPONSE ]--------------------------------------
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: HTTP/2.0 404 Not Found
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Cache-Control: private
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Content-Type: application/json; charset=UTF-8
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Date: Thu, 27 Jun 2024 23:54:14 GMT
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Server: ESF
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Vary: Origin
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Vary: X-Origin
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: Vary: Referer
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: X-Content-Type-Options: nosniff
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: X-Frame-Options: SAMEORIGIN
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: X-Xss-Protection: 0
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: {
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: "error": {
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: "code": 404,
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: "message": "IndexEndpoint `projects/hc-terraform-testing/locations/us-central1/indexEndpoints/3623695656033452032` is not found.",
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: "status": "NOT_FOUND"
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: }
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: }
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64
2024-06-27T16:54:15.052-0700 [DEBUG] provider.terraform-provider-google_9.9.9_darwin_arm64: |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_vertex_ai_index_endpoint_deployed_index" "primary" {
automatic_resources {
max_replica_count = # value needed
min_replica_count = # value needed
}
dedicated_resources {
autoscaling_metric_specs {
metric_name = # value needed
target = # value needed
}
machine_spec {
accelerator_count = # value needed
accelerator_type = # value needed
machine_type = # value needed
tpu_topology = # value needed
}
max_replica_count = # value needed
min_replica_count = # value needed
}
display_name = # value needed
enable_access_logging = # value needed
index = # value needed
name = # value needed
region = # value needed
reserved_ip_ranges = # value needed
}
|
Tests analyticsTotal tests: 46 Click here to see the affected service packages
View the build log |
latest commit supports interaction with GCP through after some url fixes.
Reference: https://cloud.google.com/vertex-ai/docs/vector-search/deploy-index-public#deploy-index latest commit produced a successful deployment 🥳 |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_vertex_ai_index_endpoint_deployed_index" "primary" {
automatic_resources {
max_replica_count = # value needed
min_replica_count = # value needed
}
dedicated_resources {
autoscaling_metric_specs {
metric_name = # value needed
target = # value needed
}
machine_spec {
accelerator_count = # value needed
accelerator_type = # value needed
machine_type = # value needed
tpu_topology = # value needed
}
max_replica_count = # value needed
min_replica_count = # value needed
}
display_name = # value needed
enable_access_logging = # value needed
index = # value needed
index_endpoint = # value needed
name = # value needed
region = # value needed
reserved_ip_ranges = # value needed
}
|
Tests analyticsTotal tests: 46 Click here to see the affected service packages
View the build log |
recent commit was getting Read method to work which includes how users will import already existing deployedIndexes into terraform. The method of creating deployed index resources in terraform is a bit tricky since the url path is the same as the index endpoint with the only difference being :deployIndex The import path may fall along the lines of Some changes were also necessary in order to make the import work such as replacing |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_vertex_ai_index_endpoint_deployed_index" "primary" {
automatic_resources {
max_replica_count = # value needed
min_replica_count = # value needed
}
dedicated_resources {
autoscaling_metric_specs {
metric_name = # value needed
target = # value needed
}
machine_spec {
accelerator_count = # value needed
accelerator_type = # value needed
machine_type = # value needed
tpu_topology = # value needed
}
max_replica_count = # value needed
min_replica_count = # value needed
}
deployed_index_id = # value needed
display_name = # value needed
enable_access_logging = # value needed
index = # value needed
index_endpoint = # value needed
region = # value needed
reserved_ip_ranges = # value needed
}
|
Tests analyticsTotal tests: 46 Click here to see the affected service packages
View the build log |
Resolves hashicorp/terraform-provider-google#12818
Checklist:
Release Note Template for Downstream PRs (will be copied)