Overview
With Cloud Functions, you can run applications written in Bash.
The Bash runtime environment has the following utilities pre-installed:
Name | Purpose |
---|---|
jq | For working with JSON. |
YC CLI | To access the Yandex.Cloud API. |
AWS CLI version 2 | For using AWS-compatible services. |
For more information about how to use the SDK, see Using the SDK.
The runtime environment automatically loads and invokes the specified request handler script for each request. The request content is passed to the script via the standard input stream, stdin
.
Cloud Functions automatically captures the script's standard output stream, stdout
, and interprets it as a response to the request. The standard error output stream, stderr
, is sent to the centralized logging system available in Yandex.Cloud. This system also logs service records about the start and end of each function and any errors that occur during its execution. For more information about the log format, see Logging.
To learn more about how to write Bash
scripts, see the Advanced Bash-Scripting Guide.