Developing in Bash. Overview
With Cloud Functions, you can run applications written in Bash
The Bash runtime has the following utilities pre-installed:
Name | What for |
---|---|
jq |
For working with JSON. |
CLI Yandex Cloud | 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 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 to run. For more information about requirements and restrictions, 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 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