A barebones Groovy lambda function
- Ensure gradle is installed. GVM works well: gvm
curl -s get.gvmtool.net | bash
gvm install gradle
- Clone the project and create a new package in src/groovy or adjust the src/groovy/example class to your liking
gradle build
- Ensure you have a zip in build/distributions/
- Login or create an account to access your AWS Console
- Click the Lambda link
- Click the "Create a Lambda Function" button
- Fill in the name, description, select Java 8 as the runtime
- Browse to the zip file created in Step 2 by clicking on the upload button
- The handler should be in the form
package.class::handler
- Create and/or select an execution role, i.e.
basic_lambda_execution
- Click the "Create Lambda" button
- Browse to the edit/test screen
- Enter input based off the handler
- Click the invoke button and verify that you get the response that you expect