Developing in Bash. Overview
With Cloud Functions, you can run applications written in Bash.
The Bash runtime has the following utilities pre-installed:
|jq||For working with JSON.|
|Yandex Cloud CLI||For working with 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 for each request. The request content is passed to the script via the standard input stream,
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 Bash function runtime logging.
To learn more about how to write
Bash scripts, see the Advanced Bash-Scripting Guide.