Skip to content

Commit

Permalink
Merge pull request #89 from kpocius/log_sample_rate
Browse files Browse the repository at this point in the history
Fix module idempotency by setting sample_rate on backend service log_config
  • Loading branch information
bschaatsbergen authored Jan 25, 2023
2 parents 266f923 + 6bd3261 commit e3e55ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e3e55ca

Please sign in to comment.