A serverless AWS project. The service is running on AWS using Serverless Framework.
Both AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
must be exported as environment variables as these are required by the AWS CLI.
Step | Command | Description |
---|---|---|
1. | npm install -g serverless |
Install required global node packages |
Command | Description |
---|
Examples:
The deployment command supports the following paramters:
TODO
Just use it on anything:
sls help
or
sls <command> --help
Deploy only one function:
sls deploy function -f <function-name>
Tail the logs of a function:
sls logs -f <function-name> -t
Information about the service (stage, region, endpoints, functions):
sls info
Run a specific function with a provided input and get the logs
sls invoke -f <function-name> -p event.json -l