Skip to content

xpeppers/happiness-index-serverless

Repository files navigation

happiness-index-serverless

Prerequisites

  1. Serverless Framework installed
  2. 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

test

./gradlew test

deploy

./gradlew clean deploy

logs

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