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 EXTERNAL_MANAGED as load_balancing_scheme for google_compute_back…
…end_service (GoogleCloudPlatform#5596)
- Loading branch information
1 parent
227d9d7
commit 913638b
Showing
3 changed files
with
22 additions
and
0 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
14 changes: 14 additions & 0 deletions
14
mmv1/templates/terraform/examples/backend_service_external_managed.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,14 @@ | ||
resource "google_compute_backend_service" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
name = "<%= ctx[:vars]['backend_service_name'] %>" | ||
health_checks = [google_compute_health_check.default.id] | ||
load_balancing_scheme = "EXTERNAL_MANAGED" | ||
} | ||
|
||
resource "google_compute_health_check" "default" { | ||
provider = google-beta | ||
name = "<%= ctx[:vars]['health_check_name'] %>" | ||
http_health_check { | ||
port = 80 | ||
} | ||
} |