diff --git a/modules/bq-log-alerting/logging/cloud_function/package.json b/modules/bq-log-alerting/logging/cloud_function/package.json index 80915137..0ca9dada 100644 --- a/modules/bq-log-alerting/logging/cloud_function/package.json +++ b/modules/bq-log-alerting/logging/cloud_function/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "@google-cloud/bigquery": "^6.0.0", + "@google-cloud/bigquery": "^7.0.0", "@google-cloud/security-center": ">=3.0.1", "crypto-js": "^4.2.0" } diff --git a/modules/bq-log-alerting/main.tf b/modules/bq-log-alerting/main.tf index b0f20977..3e2d17b2 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 = "nodejs10" + function_runtime = "nodejs14" 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 80504d32..72eb57eb 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 'nodejs10' } + its('runtime') { should eq 'nodejs14' } its('environment_variables') { should include( 'CSCC_SOURCE' => source_name,