Merge pull request #1234 from GoogleCloudPlatform/bruzz/fix-net-ilb-conn-track

Fixed connection tracking configuration on LB backend in net-ilb module
This commit is contained in:
simonebruzzechesse 2023-03-10 15:25:30 +01:00 committed by GitHub
commit b54951f596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -80,11 +80,7 @@ resource "google_compute_region_backend_service" "default" {
: null
)
idle_timeout_sec = local.bs_conntrack.idle_timeout_sec
tracking_mode = (
local.bs_conntrack.track_per_session != null
? local.bs_conntrack.track_per_session
: null
)
tracking_mode = try(local.bs_conntrack.track_per_session ? "PER_SESSION" : "PER_CONNECTION", null)
}
}