Now that the package is uploaded and deployed, invoke the API as follows:
Ameyas-MacBook-Pro:greeter-service Webonise$ curl -X POST -H 'x-api-key:1fmETyfh8x7OazCD4nPvd9WkUPM0An953mkmpmoN' https://8uf5e3eccd.execute-api.us-west-1.amazonaws.com/test/greeter -d '"ameya"'"Hello, ameya on 2018-08-29 14:11:48.280327 as per the time on database server"
As the output can attest, the database configurations are supplied as environment variables and are picked up by the handler.