Developing in Bash. Overview
With Cloud Functions, you can run applications written in Bash
The Bash runtime has the following utilities installed by default:
| Name | Purpose |
|---|---|
| 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 info on 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 provided to the script via the standard input stream, stdin.
When creating a new function version, the builder will automatically install all declared dependencies required for the function. For more information about requirements and limitations, see Building and managing Bash function dependencies.
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 in Yandex Cloud. This system also logs entries about the start and end of each function execution, as well as any errors that occur during execution. For more information about the log format, see Bash function execution logging.
To learn more about Bash scripting, see the Advanced Bash-Scripting Guide