Skip to content

Commit

Permalink
PR comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor committed Jul 24, 2019
1 parent cc52642 commit a930e37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions products/mlengine/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ overrides: !ruby/object:Overrides::ResourceOverrides
- !ruby/object:Provider::Terraform::Examples
name: "ml_model_basic"
primary_resource_id: "default"
vars:
model_name: 'default'
- !ruby/object:Provider::Terraform::Examples
name: "ml_model_full"
primary_resource_id: "default"
vars:
model_name: 'default'
properties:
name: !ruby/object:Overrides::Terraform::PropertyOverride
custom_flatten: 'templates/terraform/custom_flatten/name_from_self_link.erb'
Expand Down
4 changes: 2 additions & 2 deletions templates/terraform/examples/ml_model_basic.tf.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "google_ml_engine_model" <%= ctx[:primary_resource_id] -%> {
name = <%= ctx[:primary_resource_id] %>
resource "google_ml_engine_model" "<%= ctx[:primary_resource_id] -%>" {
name = "<%= ctx[:vars]['model_name'] -%>"
description = "My model"
regions = ["us-central1"]
}
4 changes: 2 additions & 2 deletions templates/terraform/examples/ml_model_full.tf.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "google_ml_engine_model" <%= ctx[:primary_resource_id] -%> {
name = <%= ctx[:primary_resource_id] %>
resource "google_ml_engine_model" "<%= ctx[:primary_resource_id] -%>" {
name = "<%= ctx[:vars]['model_name'] -%>"
description = "My model"
regions = ["us-central1"]
labels = {
Expand Down

0 comments on commit a930e37

Please sign in to comment.