Lab 2 - Making changes

Modify the hello function to take a query parameter and print a friendly greeting.

ENDPOINT=$(sls info -v | grep ServiceEndpoint: | cut -d ' ' -f2)
curl -XPOST ${ENDPOINT}/hello?name=World
Hello World


  • Have a look at ApiGatewayEvent
  • Use fmt.Println or log.Info for logging
  • Use serverless logs for debugging
  • Serverless docs
  • Can you find your functions logs?
  • Can you find your functions metrics?
Need help?