Serverless Cheatsheet¶
Install¶
Examples¶
Cheatsheet¶
- Create a Service:
# NodeJS
serverless create -p [SERVICE NAME] -t aws-nodejs
# C#
serverless create --path serverlessCSharp --template aws-csharp
- Install a Service
This is a convenience method to install a pre-made Serverless Service locally by downloading the Github repo and unzipping it.
- Deploy All
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.
- Deploy Function
Use this to quickly overwrite your AWS Lambda code on AWS, allowing you to develop faster.
- Invoke Function
Invokes an AWS Lambda Function on AWS and returns logs.
- Streaming Logs
Open up a separate tab in your console and stream all logs for a specific Function using this command.