An AWS SAM cookiecutter project template to quickly create a new Rails application for AWS Lambda. Details:
- Rails v6.x on Ruby 2.7 runtime.
- Integrated JavaScript development.
- Compiles CSS/JS assets.
- No ActiveRecord. Read our Database Options guides.
Lamby: Simple Rails & AWS Lambda Integration using Rack.
If you have the AWS SAM CLI already installed, use the first command. If not, use the second Docker based command.
$ sam init --location "gh:customink/lamby-cookiecutter"
$ docker run \
--rm \
--interactive \
--volume "${PWD}:/var/task" \
public.ecr.aws/sam/build-ruby2.7 \
sam init --location "gh:customink/lamby-cookiecutter"
$ ./bin/bootstrap
$ ./bin/setup
$ ./bin/deploy
This starter project is 100% scripted within Docker using the scripts in the bin
directory. To build run the following commands.
./bin/bootstrap
./bin/build
Everyone interacting in the Lamby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.