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 WEIGHTED_MAGLEV to localityLbPolicy enum, and update associated d…
…ocstrings. (GoogleCloudPlatform#7444) * Add WEIGHTED_MAGLEV to localityLbPolicy enum, and update associated docstrings. * Example for WEIGHTED_MAGLEV uses HTTP health check.
- Loading branch information
1 parent
0fbcee9
commit b4a1e38
Showing
3 changed files
with
61 additions
and
4 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
17 changes: 17 additions & 0 deletions
17
mmv1/templates/terraform/examples/region_backend_service_external_weighted.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,17 @@ | ||
resource "google_compute_region_backend_service" "<%= ctx[:primary_resource_id] %>" { | ||
region = "us-central1" | ||
name = "<%= ctx[:vars]['region_backend_service_name'] %>" | ||
health_checks = [google_compute_region_health_check.health_check.id] | ||
protocol = "TCP" | ||
load_balancing_scheme = "EXTERNAL" | ||
locality_lb_policy = "WEIGHTED_MAGLEV" | ||
} | ||
|
||
resource "google_compute_region_health_check" "health_check" { | ||
name = "<%= ctx[:vars]['health_check_name'] %>" | ||
region = "us-central1" | ||
|
||
http_health_check { | ||
port = 80 | ||
} | ||
} |