diff --git a/modules/bq-log-alerting/main.tf b/modules/bq-log-alerting/main.tf index fb7ba097..84465cdf 100644 --- a/modules/bq-log-alerting/main.tf +++ b/modules/bq-log-alerting/main.tf @@ -92,7 +92,7 @@ module "bq-log-alerting" { function_entry_point = "cronPubSub" function_source_directory = "${path.module}/logging/cloud_function" function_name = "generate-alerts" - function_runtime = "nodejs14" + function_runtime = "nodejs20" function_service_account_email = google_service_account.gcf_service_account.email function_timeout_s = var.function_timeout function_available_memory_mb = var.function_memory diff --git a/test/integration/bq-log-alerting/controls/gcp.rb b/test/integration/bq-log-alerting/controls/gcp.rb index 72eb57eb..81175e49 100644 --- a/test/integration/bq-log-alerting/controls/gcp.rb +++ b/test/integration/bq-log-alerting/controls/gcp.rb @@ -72,7 +72,7 @@ its('description') { should eq 'read from BQ view to generate alerts' } its('timeout') { should eq '540s' } its('available_memory_mb') { should eq 256 } - its('runtime') { should eq 'nodejs14' } + its('runtime') { should eq 'nodejs20' } its('environment_variables') { should include( 'CSCC_SOURCE' => source_name,