Skip to content

Commit

Permalink
Fix force_destroy in google_vertex_ai_featurestore (#6117)
Browse files Browse the repository at this point in the history
* fix 11850

* add test
  • Loading branch information
shuyama1 authored Jun 21, 2022
1 parent 8651172 commit bee7b20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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

0 comments on commit bee7b20

Please sign in to comment.