- Serverless Framework installed
- Java 11 or later
Before running the tests or deploying the on the command line, please remember to set up the xpeppers-develop
role with
setup_aws_credentials xpeppers-develop
./gradlew test
./gradlew clean deploy
Serverless provides an easy way to read the logs.
Given our function is called other
:
sls logs -f other --tail
A good alternative to keep an eye on the app logs is using awslogs
Installation
pip install awslogs
Tail the logs
awslogs get /aws/lambda/happiness-index-dev-other ALL --watch