forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add vpc_auto_create sample (GoogleCloudPlatform#5023)
- Loading branch information
1 parent
1d6ee0b
commit 6846f60
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |