General questions about Cloud Functions
Can I get logs of my operations in Yandex Cloud?
Yes, you can request information about operations with your resources from Yandex Cloud logs. Do it by contacting support
How do I upload a ZIP archive with source code to update a serverless function via CLI?
To create a function version from a ZIP file, run this command:
yc serverless function version create --source-path
For more details on uploading code, see this guide.
How large can a source code archive be when uploading to Cloud Functions?
You can upload a file up to 3.5 MB directly. To upload larger files, use Yandex Object Storage. For more information, see this guide.
I am not the cloud owner, but I was granted access. What permissions/roles do I need to publish a function?
To manage function access, you need the admin or resource-manager.clouds.owner role. For more information, see this guide.
How do I access an environment variable in a Node.js function?
To access environment variables, use the process.env global variable. For more information, see this guide
Which Python modules can I use when working with Cloud Functions? How do I add new modules?
You can upload modules in a ZIP archive up to 3.5 MB. To upload larger files, use Object Storage. For more information, see this guide.
Calling cloud functions for Alice skills is free. If I call another of my cloud functions from a skill function, will that also be free?
Such calls will be charged according to Cloud Functions pricing policy.
I want to increase my quotas. How do I determine appropriate values for them?
For more information on which quotas to increase and to what extent, see Relationship between quotas.
Why does an API request return the Illegal duration format error?
If your API request body contains parameters in type.googleapis.com/google.protobuf.Duration format, you may get the following error:
Illegal duration format; duration must end with 's' for type type.googleapis.com/google.protobuf.Duration
When using this format, make sure to append s to duration values.
For example:
{
"timeout": "120s"
}