Invoke the API by using the curl command:
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 12:48:54.947853 as per the time on database server"
As you can see, the output has the time sourced from the database server.
Now that our test bed is set up, let's proceed with hardening this setup.