Skip to content

Commit

Permalink
balancing_mode=CONNECTION
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelrn committed Sep 12, 2024
1 parent bbd9e72 commit 561c434
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions modules/lb_external/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
- Can only use the nic0 (the base interface) of an instance.
- Cannot serve as a next hop in a GCP custom routing table entry.

## Limitation

### Supported Module Version with Regards to the Changed Provider's Default Values

- Module versions `<=2.0.6` supports `terraform-provider-google` version `<6.0`. If you are using `terraform-provider-google` version `6.0` and above choose module version `2.0.7` and above. This limitation is related to the [change](https://github.com/hashicorp/terraform-provider-google/commit/267f964bd4f2d9b48e8771c2a8397de3f6655ef7) in the default value of `balancing_mode` introduced in the `terraform-provider-google` version `6.0`

## Reference
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
### Requirements
Expand Down
3 changes: 2 additions & 1 deletion modules/lb_external/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ resource "google_compute_region_backend_service" "this" {
dynamic "backend" {
for_each = var.backend_instance_groups
content {
group = backend.value
group = backend.value
balancing_mode = "CONNECTION"
}
}

Expand Down

0 comments on commit 561c434

Please sign in to comment.