yc serverless function version create
Create new function version
Command Usage
Syntax:
yc serverless function version create (--function-id <FUNCTION_ID>|--function-name <FUNCTION_NAME>) [Flags...] [Global Flags...]
Flags
|
Flag |
Description |
|
|
Function id. |
|
|
Function name. |
|
|
Display information about the operation in progress, without waiting for the operation to complete. |
|
|
Runtime. Valid values are listed by "serverless function runtime list". |
|
|
Entry point. |
|
|
Required memory. Example: '1GB', '128MB'. The default value is 128MB. |
|
|
Execution timeout. The default value is 3s |
|
|
Service account id. |
|
|
Storage bucket name of the function package. |
|
|
Storage object name of the function package. |
|
|
Sha256 of the function package. |
|
|
Local filesystem path of the function package: either directory or file (file can be a valid zip archive). |
|
|
ID of a version to make a copy from. |
|
|
Version description. |
|
|
Version environment variables. |
|
|
Version tags. |
|
|
Version network name. |
|
|
Version network id. |
|
|
Version subnet names. |
|
|
Version subnet ids. |
|
|
Adds a named service account to the version. Can be used multiple times. Possible property names:
|
|
|
Version secret. Possible property names:
|
|
|
DEPRECATED: Use mounts instead. Storage mounts. Example: mount-point=dir,bucket=user-bucket,read-only=false Possible property names:
|
|
|
Add a mount to the version. Example: type=ephemeral-disk,mount-point=mnt1,size=5GB Possible property names:
|
|
|
Disable logging from function. |
|
|
Send logs to custom log group by id. |
|
|
Send logs to custom log group by name. |
|
|
Send logs to default log group of custom folder by id. |
|
|
Send logs to default log group of custom folder by name. |
|
|
Min log level. Values: 'trace', 'debug', 'info', 'warn', 'error', 'fatal' |
|
|
Max retries for async invocation. |
|
|
Service account for asynchronous function invocation. |
|
|
YMQ ARN target for success invocation. |
|
|
Service account for writing successful result of async invocation function. |
|
|
YMQ ARN target for failure. |
|
|
Service account for writing unsuccessful result of async invocation function. |
|
|
Size of memory for use as in-memory storage mounted as /tmp directory. Example: '512MB', '1GB'. The default value is 0B. |
|
|
The maximum number of requests processed by a function instance at the same time. |
|
|
Options set the access mode to function's metadata endpoints. Example: aws-v1-http-endpoint=disabled,gce-http-endpoint=enabled Possible property names:
|
Global Flags
|
Flag |
Description |
|
|
Set the custom configuration file. |
|
|
Debug logging. |
|
|
Debug gRPC logging. Very verbose, used for debugging connection problems. |
|
|
Disable printing user intended output to stderr. |
|
|
Enable gRPC retries. By default, retries are enabled with maximum 5 attempts. |
|
|
CLI syntax: 1 (legacy) or 2 (current). Omit to use default-syntax in the profile or the product default. |
|
|
Set the ID of the cloud to use. |
|
|
Set the ID of the folder to use. |
|
|
Set the name of the folder to use (will be resolved to id). |
|
|
Set the Cloud API endpoint (host:port). |
|
|
Set the OAuth token to use. |
|
|
Set the ID of the service account to impersonate. |
|
|
Disable opening browser for authentication. |
|
|
Set the output format: text (default), yaml, json, json-rest. |
|
|
Query to select values from the response using jq syntax |
|
|
Display help for the command. |
- Выделить память для директории /tmp
- Задать количество одновременных вызовов экземпляра функции
- Добавить переменные окружения функции
- Настройте асинхронный вызов
- Передать секреты Yandex Lockbox в функцию
- Пример команды
- Настроить параметры сервиса метаданных функции
- Смонтировать бакеты в функцию
- Смонтировать эфемерный диск в функцию
- Указать облачную сеть, в которой будет исполняться функция
- Создать версию функции