The Serverless Framework was designed to provision your Apache OpenWhisk Functions, Triggers and Rules safely and quickly. It does this via a couple of methods designed for different types of deployments.
This is the main method for doing deployments 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 Apache OpenWhisk.
Note: You can specify a different configuration file name with the the --config
option.
The Serverless Framework translates all syntax in serverless.yml
to platform API calls to provision your Actions, Triggers, Rules and APIs.
serverless.yml
configuration and translates to OpenWhisk resources.Check out the deploy command docs for all details and options.
This deployment method updates a single function. It performs the platform API call to deploy your package without the other resources. It is much faster than redeploying your whole service each time.
serverless deploy function --function myFunction
serverless deploy
which is only run when larger infrastructure provisioning is required.Check out the deploy command docs for all details and options.
This deployment option takes a deployment directory that has already been created with serverless package
and deploys it to the cloud provider. This allows you to easier integrate CI / CD workflows with the Serverless Framework.
serverless deploy --package path-to-package
--package
flag is a directory that has been previously packaged by Serverless (with serverless package
).Product