diff --git a/en/_tutorials/infrastructure/nodejs-cron-restart-vm.md b/en/_tutorials/infrastructure/nodejs-cron-restart-vm.md index e4f84ede24..d73346df23 100644 --- a/en/_tutorials/infrastructure/nodejs-cron-restart-vm.md +++ b/en/_tutorials/infrastructure/nodejs-cron-restart-vm.md @@ -218,7 +218,7 @@ Use an [OAuth token](../../iam/concepts/authorization/oauth-token.md) if you can 1. In the window that opens, enter `function-restart-vms` as the function name. 1. Click **{{ ui-key.yacloud.common.create }}**. 1. Create a [function version](../../functions/concepts/function.md#version): - 1. Select `nodejs18` as the runtime environment, disable **{{ ui-key.yacloud.serverless-functions.item.editor.label_with-template }}**, and click **{{ ui-key.yacloud.serverless-functions.item.editor.button_action-continue }}**. + 1. Select `nodejs22` as the runtime environment, disable **{{ ui-key.yacloud.serverless-functions.item.editor.label_with-template }}**, and click **{{ ui-key.yacloud.serverless-functions.item.editor.button_action-continue }}**. 1. In the **{{ ui-key.yacloud.serverless-functions.item.editor.field_code-source }}** field, select `{{ ui-key.yacloud.serverless-functions.item.editor.value_method-zip-file }}`. 1. In the **{{ ui-key.yacloud.serverless-functions.item.editor.field_file }}** field, click **Attach file** and select the `function-js.zip` archive you created earlier. 1. Specify the entry point: `index.handler`. @@ -263,7 +263,7 @@ Use an [OAuth token](../../iam/concepts/authorization/oauth-token.md) if you can --function-name function-restart-vms \ --memory=128m \ --execution-timeout=3s \ - --runtime=nodejs18 \ + --runtime=nodejs22 \ --entrypoint=index.handler \ --service-account-id= \ --environment FOLDER_ID=,INSTANCE_ID= \ @@ -311,7 +311,7 @@ Use an [OAuth token](../../iam/concepts/authorization/oauth-token.md) if you can resource "yandex_function" "function-restart-vms" { name = "function-restart-vms" user_hash = "first function" - runtime = "nodejs18" + runtime = "nodejs22" entrypoint = "index.handler" memory = "128" execution_timeout = "3" diff --git a/ru/_tutorials/infrastructure/nodejs-cron-restart-vm.md b/ru/_tutorials/infrastructure/nodejs-cron-restart-vm.md index 3d34ab9855..a03bbbaa0c 100644 --- a/ru/_tutorials/infrastructure/nodejs-cron-restart-vm.md +++ b/ru/_tutorials/infrastructure/nodejs-cron-restart-vm.md @@ -218,7 +218,7 @@ 1. В открывшемся окне введите имя функции `function-restart-vms`. 1. Нажмите кнопку **{{ ui-key.yacloud.common.create }}**. 1. Создайте [версию функции](../../functions/concepts/function.md#version): - 1. Выберите среду выполнения `nodejs18`, отключите опцию **{{ ui-key.yacloud.serverless-functions.item.editor.label_with-template }}** и нажмите кнопку **{{ ui-key.yacloud.serverless-functions.item.editor.button_action-continue }}**. + 1. Выберите среду выполнения `nodejs22`, отключите опцию **{{ ui-key.yacloud.serverless-functions.item.editor.label_with-template }}** и нажмите кнопку **{{ ui-key.yacloud.serverless-functions.item.editor.button_action-continue }}**. 1. В поле **{{ ui-key.yacloud.serverless-functions.item.editor.field_code-source }}** выберите `{{ ui-key.yacloud.serverless-functions.item.editor.value_method-zip-file }}`. 1. В поле **{{ ui-key.yacloud.serverless-functions.item.editor.field_file }}** нажмите кнопку **Прикрепить файл** и выберите архив `function-js.zip`, который создали ранее. 1. Укажите точку входа `index.handler`. @@ -263,7 +263,7 @@ --function-name function-restart-vms \ --memory=128m \ --execution-timeout=3s \ - --runtime=nodejs18 \ + --runtime=nodejs22 \ --entrypoint=index.handler \ --service-account-id=<идентификатор_сервисного_аккаунта> \ --environment FOLDER_ID=<идентификатор_каталога>,INSTANCE_ID=<идентификатор_ВМ> \ @@ -311,7 +311,7 @@ resource "yandex_function" "function-restart-vms" { name = "function-restart-vms" user_hash = "first function" - runtime = "nodejs18" + runtime = "nodejs22" entrypoint = "index.handler" memory = "128" execution_timeout = "3"