You can run Ruby on AWS Lambda via SCAR using, for example, the ruby:2.2.10-slim-jessie Docker image.
You can run a container out of this image on AWS Lambda via SCAR using the following procedure:
- Create the Lambda function
scar init -f scar-ruby.yaml- Execute the Lambda function with an script to run sample Ruby script
scar run -f scar-ruby.yaml -s run-ruby-script.shThe first invocation will take a bit longer than the subsequent ones, where the container will be cached. You can modify the script and perform another scar run.
You can also run multiple concurrent invocations of this Lambda function to perform highly-parallel event-driven processing. See the SCAR Programming Model.