Updated on 2023-11-22 GMT+08:00

Deploy

The Serverless Framework is designed to provision functions, events and resources of FunctionGraph safely and quickly.

Deploying All

This is the main method for deploying with the Serverless Framework:
serverless deploy

Use this method when you have updated your function, event, or resource configuration in serverless.yml and you want to deploy that change (or multiple changes at the same time) to Huawei Cloud.

Working Principles

The Serverless Framework translates all syntax in serverless.yml to a configuration template.

  1. The provider plugin parses serverless.yml configuration and translates it to Huawei Cloud resources.
  2. The code of your functions is then packaged into a directory, zipped, and uploaded to the deployment bucket.
  3. Resources are deployed.

    Use this in your CI/CD system, as it is the safest method for deployment.

Check out the deploy command docs for all the details and options.