A trivial Node.js microservice example, that just returns "Hello World" when called. To try it out, first set up the credentials, then:
- run
npm installto grab the dependencies - run
npm startto set up the lambda project under the default name on AWS - run
npm testto execute the lambda from the command line and print the output on the console
Check out the package.json scripts section to see how Claudia gets invoked for the start and test scripts. Check out the main.js file to see how the Lambda function works. For a bit more fun, modify the message in main.js, then run npm run deploy to deploy the code to AWS, then run the test again to see the change.