This plugin enables support for Yandex Cloud Functions within the Serverless Framework.
First of all, you need to install serverless
command-line tool. Check official get started guide. Fastest way to do this is to use npm
:
npm install serverless -g
Now you can create new project from template provided by this plugin:
serverless create \
--template-url https://github.com/yandex-cloud/serverless-plugin/tree/master/templates/nodejs
Before you deploy your first functions using Serverless, you need to configure Yandex.Cloud credentials. Easiest way to do that
is to install yc
command-line tool and use wizard to provide all required parameters. All required guides and in-depth documentation availabe at Yandex.Cloud website.
To deploy your project use:
serverless deploy
To invoke (test) your function:
serverless invoke -f simple
To remove all deployed resources:
serverless remove