A runtime environment enabling racket code to be run through AWS lambda. This version supports multiple versions of racket as well as errors. This is accomplished with a program which handles the dynamic import of a function from a module in racket. This implementation has been tested with aws SAM and racket version 7.9.
- Docker
- AWS SAM CLI
- A simple program requires the follow files in the base directory:
Makefileaws uses this to define how custom runtimes are builtDockerfiledefines the executable build container, you can change racket version herewrapper.rkthandles importing the correct function and calling it with the event- Optional:
- An
info.rktis encouraged to ensure all dependencies are correctly installed
- An
- Write a sam template defining your function (an example is provided)
- Call
sam build [function name]orsam buildto build all defined functions - (Optional) To test call
echo "{event here}" | sam local invoke -e- - When ready to deploy call
sam deploy
- Performance is currently ~800ms for the example cat program
- This has only been tested with racket 7.9