Skip to content

Commit

Permalink
add vpc_auto_create sample (GoogleCloudPlatform#5023)
Browse files Browse the repository at this point in the history
  • Loading branch information
c2thorn authored and khajduczenia committed Oct 12, 2021
1 parent 1d6ee0b commit 6846f60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mmv1/products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,8 @@ overrides: !ruby/object:Overrides::ResourceOverrides
primary_resource_id: "vpc_network"
vars:
network_name: "vpc-network"
test_env_vars:
project: :PROJECT_NAME
virtual_fields:
- !ruby/object:Api::Type::Boolean
name: 'delete_default_routes_on_create'
Expand Down
8 changes: 6 additions & 2 deletions mmv1/templates/terraform/examples/network_custom_mtu.tf.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# [START vpc_auto_create]
resource "google_compute_network" "<%= ctx[:primary_resource_id] %>" {
name = "<%= ctx[:vars]['network_name'] %>"
mtu = 1500
project = "<%= ctx[:test_env_vars]["project"] %>"
name = "<%= ctx[:vars]['network_name'] %>"
auto_create_subnetworks = true
mtu = 1460
}
# [END vpc_auto_create]

0 comments on commit 6846f60

Please sign in to comment.