We are now ready to implement our first Lambda function, which will just upload to the cloud via AWS CLI and invoke manually.
First, we have to create a new subproject, like we did earlier. This time, the subproject will be called lambda-test. We can easily do that with these two commands:
$ mkdir -p lambda-test/src/main/java/com/serverlessbook/lambda/test $ echo $"include 'lambda'" >> settings.gradle $ touch lambda-test/src/main/java/com/serverlessbook/lambda/ test/Handler.java
We can create a blank class in Handler.java like this:
package com.serverlessbook.lambda.test; public class Handler {}
Note that we've already chosen a naming convention for package naming: while our base Lambda package sits in the com.serverlessbook.lambda ...