Overview
The Creating and Deploying Function document describes how to create an SCF function by using Serverless Cloud Framework. For Serverless Cloud Framework, this operation deploys a single-instance serverless application through the SCF component. A serverless application can consist of one or multiple instances, and each component deployment corresponds to one instance. Each instance involves a serverless.yml
file as shown below, which defines certain parameters of the component. Such parameters are used to generate the instance information during deployment. For example, region
defines the region where the resources are located.
This document describes single-instance and multi-instance applications and uses actual scenarios as examples to show how to perform project management and resource orchestration for SCF.
Single-instance applications
In the project of a single-instance application, only one component is imported, and only one component instance will be generated during deployment. The name of the single-instance application is generated by Serverless Cloud Framework by default.
Use cases: Serverless Cloud Framework is used only as a CLI tool to create and update functions, and you need to orchestrate and manage function resources by yourself.
Multi-instance applications
In the project of a multi-instance application, multiple components are imported, and multiple component instances will be generated during deployment. You need to enter a fixed name for the multi-instance application to ensure that all components are managed under the same application.
Use cases: you need to organize and orchestrate multiple SCF resources in the project through Serverless Framework.
Project Development
Serverless Cloud Framework provides a set of administrative mechanisms for resource orchestration, environment isolation, and grayscale release. In addition to creating SCF functions, Serverless Cloud Framework also provides a wealth of components for manipulating various Tencent Cloud services such as API Gateway, Tencent Cloud Object Storage (COS), and Cloud Access Management (CAM). With Serverless Cloud Framework for project development, you can focus on developing your business and improving your efficiency. For more information about project development, see Serverless Cloud Framework.
Was this page helpful?