Sparta application that demonstrates calling same code from AWS Lambda or EC2 instance. It also shows how to register a custom command line option with the Sparta framework. Requires Sparta v0.7.0 or later.
This also includes a Lambda-backed CloudFormation CustomResource to lookup the latest Ubuntu AMI ID.