Skip to content

vongkim/serverless-nodejs-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A serverless AWS project

serverless

A serverless AWS project. The service is running on AWS using Serverless Framework.

Usage

Both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be exported as environment variables as these are required by the AWS CLI.

Setup

Step Command Description
1. npm install -g serverless Install required global node packages

Development

Command Description

Examples:

Deployment

The deployment command supports the following paramters:

TODO

Tips & Tricks

help command

Just use it on anything:

sls  help

or

sls <command> --help

deploy function command

Deploy only one function:

sls deploy function -f <function-name>

logs command

Tail the logs of a function:

sls logs -f <function-name> -t

info command

Information about the service (stage, region, endpoints, functions):

sls info

invoke command

Run a specific function with a provided input and get the logs

sls invoke -f <function-name> -p event.json -l

About

A simple serverless nodejs template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published