Run ruby code on JRuby on AWS Lambda Java
-
Add your ruby code to src/main/resources/main.rb
-
Build project
./gradlew build
- Crate AWS Lambda fuction on AWS
put "AWSLambdaJRuby::handler" to handler setting
- Upload zip file
Zip file is created into build/distributions
- Run Lambda function
needs timeout of at least 60 sec for the first execution of the lambda