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. |
|
|
DEPRECATED: specify only the network (--network-name or --network-id), without the list of subnets. Version subnet names. |
|
|
DEPRECATED: specify only the network (--network-name or --network-id), without the list of subnets. 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 profile. |
|
|
Set the region. |
|
|
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). |
|
|
Debug logging. |
|
|
Debug gRPC logging. Very verbose, used for debugging connection problems. |
|
|
Disable printing user intended output to stderr. |
|
|
Set the custom pager. |
|
|
Do not pipe help output through a pager. |
|
|
Set the output format: text (default), yaml, json, json-rest. |
|
|
Enable gRPC retries. By default, retries are enabled with maximum 5 attempts. |
|
|
Set the timeout. |
|
|
Set the OAuth token to use. |
|
|
Query to select values from the response using jq syntax |
|
|
Set the Cloud API endpoint (host:port). |
|
|
Set the ID of the service account to impersonate. |
|
|
Disable opening browser for authentication. |
|
|
Query to select values from the response using jq syntax |
|
|
Print operation metadata along with result. |
|
|
Choose syntax option. |
|
|
Enable interactive auto-prompt mode. Values: on, partial, off. Bare --cli-auto-prompt is equivalent to --cli-auto-prompt=on. |
|
|
Disable interactive auto-prompt mode (overrides --cli-auto-prompt, env and profile). |
|
|
Display help for the command. |
- Allocating memory for the /tmp directory
- Setting the number of concurrent function instance calls
- Adding function environment variables
- Configure asynchronous invocation
- Providing Yandex Lockbox secrets to a function
- Command example
- Configuring metadata service parameters for a function
- Mounting buckets to a function
- Mounting an ephemeral disk in a function
- Specifying a cloud network for running a function
- Creating a function version