Here is a quick guide on how to create a new serverless project using the Spotinst NodeJS template. For more detailed instruction please check out the other reference material provided.
First you will need to have the serverless framework installed. To do this you will have to run the command:
npm install -g serverless
To do this please refer to the Credentials link provided
Create a new service using the Node.js template, specifying a unique name and an optional path for your service.
serverless create --template spotinst-nodejs -p new-service cd new-service
You will first need to install the Spotinst Functions plugin before you are able to deploy your function. Once this has been done you do not need to do it again for this project.
Use this when you have made changes to your Functions, Events or Resources in
serverless.yml or you simply want to deploy all changes within your Service at the same time.
Use this to quickly upload and overwrite your function code, allowing you to develop faster.
serverless deploy function -f hello
Use this to update your function after you have made updates that you want to push to production.
Invokes a Function
serverless invoke -f hello
If at any point, you no longer need your service, you can run the following command to remove the Functions, Events and Resources that were created, and ensure that you don't incur any unexpected charges.