-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e50f19
commit 82745ba
Showing
5 changed files
with
82 additions
and
7 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
33 changes: 33 additions & 0 deletions
33
mmv1/templates/terraform/examples/vmware_engine_network_legacy.tf.erb
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
resource "google_vmwareengine_network" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
project = google_project_service.acceptance.project | ||
name = "<%= ctx[:test_env_vars]['location'] %>-default" #Legacy network IDs are in the format: {region-id}-default | ||
location = "<%= ctx[:test_env_vars]['location'] %>" | ||
type = "LEGACY" | ||
description = "VMwareEngine legacy network sample" | ||
} | ||
|
||
resource "google_project_service" "acceptance" { | ||
project = google_project.acceptance.project_id | ||
provider = google-beta | ||
service = "vmwareengine.googleapis.com" | ||
|
||
# Needed for CI tests for permissions to propagate, should not be needed for actual usage | ||
depends_on = [time_sleep.wait_60_seconds] | ||
} | ||
|
||
# there can be only 1 Legacy network per region for a given project, | ||
# so creating new project for isolation in CI. | ||
resource "google_project" "acceptance" { | ||
name = "<%= ctx[:vars]['proj_id'] %>" | ||
provider = google-beta | ||
project_id = "<%= ctx[:vars]['proj_id'] %>" | ||
org_id = "<%= ctx[:test_env_vars]['org_id'] %>" | ||
billing_account = "<%= ctx[:test_env_vars]['billing_account'] %>" | ||
} | ||
|
||
resource "time_sleep" "wait_60_seconds" { | ||
depends_on = [google_project.acceptance] | ||
|
||
create_duration = "60s" | ||
} |
1 change: 1 addition & 0 deletions
1
mmv1/third_party/terraform/services/vmwareengine/data_source_google_vmwareengine_network.go
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,5 @@ | ||
package vmwareengine | ||
|
||
import ( | ||
"fmt" | ||
|
||
|
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