How Do I Create Function Dependencies?
This section describes how to create a private dependency of a function on your local PC.
Notes and Constraints
- The maximum size of a dependency is 300 MB, and the maximum number of files in a dependency is 30,000.
- The name of a file in a dependency cannot end with a tilde (~), for example, module~.
- If the modules to be installed need dependencies such as .dll, .so, and .a, archive them to a .zip package.
- You are advised to create function dependencies in Huawei Cloud EulerOS 2.0. If other OSs are used, the dynamic link library may not be found due to the differences between underlying dependency libraries.
Setting Up the EulerOS Environment
You are advised to create function dependencies in EulerOS. EulerOS is an enterprise-grade Linux OS based on open-source technology. It features high security, scalability, and performance, meeting customers' requirements for IT infrastructure and cloud computing services.
You can set up the Huawei Cloud EulerOS environment using the following methods:
- Buy a EulerOS ECS on Huawei Cloud by referring to Purchasing and Logging In to a Linux ECS. On the Configure Basic Settings page, select Public Image, and select Huawei Cloud EulerOS and an image version.
- Download the EulerOS image, and use virtualization software to set up the EulerOS VM on a local PC.
Creating a Function Dependency
For details about how to create a dependency for a function, see .
Helpful Links
- After creating a dependency locally, create and configure the dependency on the FunctionGraph console by referring to .
- Manage function dependencies through APIs. For details, see Dependency APIs.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot