Skip to content

Commit aeb8ca4

Browse files
committed
Update deprecated references to nodejs
1 parent a0f3a03 commit aeb8ca4

10 files changed

+11
-11
lines changed

mmv1/templates/terraform/examples/cloudfunctions2_basic_auditlogs.tf.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ resource "google_cloudfunctions2_function" "{{$.PrimaryResourceId}}" {
6060
description = "a new function"
6161

6262
build_config {
63-
runtime = "nodejs14"
63+
runtime = "nodejs20"
6464
entry_point = "entryPoint" # Set the entry point in the code
6565
environment_variables = {
6666
BUILD_CONFIG_TEST = "build_test"

mmv1/templates/terraform/examples/cloudfunctions2_basic_gcs.tf.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ resource "google_cloudfunctions2_function" "{{$.PrimaryResourceId}}" {
6464
description = "a new function"
6565

6666
build_config {
67-
runtime = "nodejs14"
67+
runtime = "nodejs20"
6868
entry_point = "entryPoint" # Set the entry point in the code
6969
environment_variables = {
7070
BUILD_CONFIG_TEST = "build_test"

mmv1/templates/terraform/examples/cloudfunctions_cloud_function.tf.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ resource "google_storage_bucket_object" "archive" {
1212
resource "google_cloudfunctions_function" "{{$.PrimaryResourceId}}" {
1313
name = "{{index $.Vars "function_name"}}"
1414
description = "My function"
15-
runtime = "nodejs10"
15+
runtime = "nodejs20"
1616

1717
available_memory_mb = 128
1818
source_archive_bucket = google_storage_bucket.bucket.name

mmv1/templates/terraform/examples/region_network_endpoint_group_functions.tf.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resource "google_compute_region_network_endpoint_group" "{{$.PrimaryResourceId}}
1111
resource "google_cloudfunctions_function" "{{$.PrimaryResourceId}}" {
1212
name = "{{index $.Vars "neg_name"}}"
1313
description = "My function"
14-
runtime = "nodejs10"
14+
runtime = "nodejs20"
1515

1616
available_memory_mb = 128
1717
source_archive_bucket = google_storage_bucket.bucket.name

mmv1/third_party/terraform/services/cloudfunctions/data_source_google_cloudfunctions_function_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ resource "google_storage_bucket_object" "archive" {
5353
5454
resource "google_cloudfunctions_function" "function_http" {
5555
name = "%s-http"
56-
runtime = "nodejs14"
56+
runtime = "nodejs20"
5757
description = "test function"
5858
available_memory_mb = 128
5959
source_archive_bucket = google_storage_bucket.bucket.name

mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func ResourceCloudFunctionsFunction() *schema.Resource {
287287
"runtime": {
288288
Type: schema.TypeString,
289289
Required: true,
290-
Description: `The runtime in which the function is going to run. Eg. "nodejs14", "python37", "go111".`,
290+
Description: `The runtime in which the function is going to run. Eg. "nodejs20", "python37", "go111".`,
291291
},
292292

293293
"service_account_email": {

mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ resource "google_storage_bucket_object" "cloud_function_zip_object" {
13551355

13561356
resource "google_cloudfunctions_function" "function" {
13571357
name = "%s"
1358-
runtime = "nodejs14"
1358+
runtime = "nodejs20"
13591359
service_account_email = google_service_account.cloud_function_runner.email
13601360
entry_point = "echoSecret"
13611361
source_archive_bucket = google_storage_bucket.cloud_functions.id
@@ -1420,7 +1420,7 @@ resource "google_storage_bucket_object" "cloud_function_zip_object" {
14201420

14211421
resource "google_cloudfunctions_function" "function" {
14221422
name = "%s"
1423-
runtime = "nodejs14"
1423+
runtime = "nodejs20"
14241424
service_account_email = google_service_account.cloud_function_runner.email
14251425
entry_point = "echoSecret"
14261426
source_archive_bucket = google_storage_bucket.cloud_functions.id

mmv1/third_party/terraform/website/docs/guides/google-continuous-validation.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ resource "google_cloudfunctions2_function" "my-function" {
191191
location = "us-central1"
192192
description = "a new function"
193193
build_config {
194-
runtime = "nodejs14"
194+
runtime = "nodejs20"
195195
entry_point = "helloHttp"
196196
source {
197197
storage_source {

mmv1/third_party/tgc/tests/data/example_google_cloudfunctions_function.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"location": "us-east1",
2121
"name": "my-cf",
22-
"runtime": "nodejs14",
22+
"runtime": "nodejs20",
2323
"timeout": 60,
2424
"trigger_http": true,
2525
"vpcConnector": "vpc-con-cf",

mmv1/third_party/tgc/tests/data/example_google_cloudfunctions_function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "google_vpc_access_connector" "connector" {
2121
resource "google_cloudfunctions_function" "function" {
2222
name = "my-cf"
2323
description = "My CloudFunction"
24-
runtime = "nodejs14"
24+
runtime = "nodejs20"
2525

2626
available_memory_mb = 128
2727
source_archive_bucket = "validator_bucket_local"

0 commit comments

Comments
 (0)