From 6bd3261bd52b97df864c5799c89b3bf9d4e41970 Mon Sep 17 00:00:00 2001 From: Karolis Pocius Date: Wed, 25 Jan 2023 15:52:28 +0100 Subject: [PATCH] Set sample_rate --- main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 8647b4f..0330ca2 100644 --- a/main.tf +++ b/main.tf @@ -184,7 +184,7 @@ resource "google_compute_instance_template" "default" { project = var.project - # Instance Templates cannot be updated after creation with the Google Cloud Platform API. + # Instance Templates cannot be updated after creation with the Google Cloud Platform API. # In order to update an Instance Template, Terraform will destroy the existing resource and create a replacement lifecycle { create_before_destroy = true @@ -279,7 +279,8 @@ resource "google_compute_backend_service" "default" { health_checks = [google_compute_health_check.default.id] log_config { - enable = true + enable = true + sample_rate = 1 } backend {