Skip to content

atwoodjw/lamby-cookiecutter

 
 

Repository files navigation

Lamby Cookiecutter

Lamby: Simple Rails & AWS Lambda Integration using Rack.

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 with LibSass & Webpacker.
  • No ActiveRecord. Read our Database Options guides.

Lamby: Simple Rails & AWS Lambda Integration using Rack.

Usage

⚠️ Please reference the full Quick Start guide on the Lamby site for details. Basic usage is:

SAM Init

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:delegated" \
  amazon/aws-sam-cli-build-image-ruby2.7 \
  sam init --location "gh:customink/lamby-cookiecutter"

Setup & Deploy (within project)

$ ./bin/bootstrap
$ ./bin/setup
$ ./bin/deploy

Contributing

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

Code of Conduct

Everyone interacting in the Lamby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Links

https://dev.to/aws-heroes/serverless-docker-patterns-4g1p

About

AWS SAM Cookiecutter to Quick Start Rails & Lambda 🐑🛤

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 42.6%
  • Shell 24.8%
  • Python 14.8%
  • HTML 9.3%
  • JavaScript 6.4%
  • CSS 1.2%
  • Dockerfile 0.9%