Skip to content
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

Fix force_destroy in google_vertex_ai_featurestore #6117

Merged
merged 2 commits into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mmv1/products/vertexai/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ overrides: !ruby/object:Overrides::ResourceOverrides
primary_resource_id: "featurestore"
vars:
name: "terraform"
ignore_read_extra:
- "force_destroy"
properties:
region: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ resource "google_vertex_ai_featurestore" "featurestore" {
online_serving_config {
fixed_node_count = 2
}
force_destroy = true
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

if v, ok := d.GetOk("force_destroy"); ok {
url, err = addQueryParams(url, map[string]string{"force": v.(string)})
url, err = addQueryParams(url, map[string]string{"force": fmt.Sprintf("%v", v)})
if err != nil {
return err
}
Expand Down