diff --git a/autogen/main.tf.tmpl b/autogen/main.tf.tmpl index 6ec826df..56ea3f02 100644 --- a/autogen/main.tf.tmpl +++ b/autogen/main.tf.tmpl @@ -308,10 +308,10 @@ resource "google_compute_backend_service" "default" { } dynamic "interval" { - for_each = each.value.outlier_detection.cache_key_policy != null ? [1] : [] + for_each = each.value.outlier_detection.interval != null ? [1] : [] content { - seconds = each.value.outlier_detection.cache_key_policy.seconds - nanos = each.value.outlier_detection.cache_key_policy.nanos + seconds = each.value.outlier_detection.interval.seconds + nanos = each.value.outlier_detection.interval.nanos } } } diff --git a/main.tf b/main.tf index 48fe72ac..f9c17cde 100644 --- a/main.tf +++ b/main.tf @@ -299,10 +299,10 @@ resource "google_compute_backend_service" "default" { } dynamic "interval" { - for_each = each.value.outlier_detection.cache_key_policy != null ? [1] : [] + for_each = each.value.outlier_detection.interval != null ? [1] : [] content { - seconds = each.value.outlier_detection.cache_key_policy.seconds - nanos = each.value.outlier_detection.cache_key_policy.nanos + seconds = each.value.outlier_detection.interval.seconds + nanos = each.value.outlier_detection.interval.nanos } } } diff --git a/modules/dynamic_backends/main.tf b/modules/dynamic_backends/main.tf index d6ff812f..164982ab 100644 --- a/modules/dynamic_backends/main.tf +++ b/modules/dynamic_backends/main.tf @@ -299,10 +299,10 @@ resource "google_compute_backend_service" "default" { } dynamic "interval" { - for_each = each.value.outlier_detection.cache_key_policy != null ? [1] : [] + for_each = each.value.outlier_detection.interval != null ? [1] : [] content { - seconds = each.value.outlier_detection.cache_key_policy.seconds - nanos = each.value.outlier_detection.cache_key_policy.nanos + seconds = each.value.outlier_detection.interval.seconds + nanos = each.value.outlier_detection.interval.nanos } } } diff --git a/modules/serverless_negs/main.tf b/modules/serverless_negs/main.tf index 90ed40cc..f80a0917 100644 --- a/modules/serverless_negs/main.tf +++ b/modules/serverless_negs/main.tf @@ -287,10 +287,10 @@ resource "google_compute_backend_service" "default" { } dynamic "interval" { - for_each = each.value.outlier_detection.cache_key_policy != null ? [1] : [] + for_each = each.value.outlier_detection.interval != null ? [1] : [] content { - seconds = each.value.outlier_detection.cache_key_policy.seconds - nanos = each.value.outlier_detection.cache_key_policy.nanos + seconds = each.value.outlier_detection.interval.seconds + nanos = each.value.outlier_detection.interval.nanos } } }