{"id":15465690,"url":"https://github.com/wmaciejak/aws-lambda-boilerplate","last_synced_at":"2026-04-28T01:31:37.406Z","repository":{"id":89850818,"uuid":"439267438","full_name":"wmaciejak/aws-lambda-boilerplate","owner":"wmaciejak","description":"AWS Lambda boilerplate - This repository serves as a clonable template for service AWS lambda service architecture. Clone this repository, and change the services to suit the needs of your new service. We have provided a few examples in the examples folder.","archived":false,"fork":false,"pushed_at":"2021-12-17T09:26:59.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T09:01:55.000Z","etag":null,"topics":["aws","aws-lambda","ruby","serverless"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wmaciejak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-17T08:48:31.000Z","updated_at":"2021-12-17T09:27:02.000Z","dependencies_parsed_at":"2023-06-15T21:00:33.478Z","dependency_job_id":null,"html_url":"https://github.com/wmaciejak/aws-lambda-boilerplate","commit_stats":{"total_commits":52,"total_committers":5,"mean_commits":10.4,"dds":0.5576923076923077,"last_synced_commit":"bada317495344d477ed0043785ee26aea6d1819e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wmaciejak/aws-lambda-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmaciejak%2Faws-lambda-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmaciejak%2Faws-lambda-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmaciejak%2Faws-lambda-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmaciejak%2Faws-lambda-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wmaciejak","download_url":"https://codeload.github.com/wmaciejak/aws-lambda-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmaciejak%2Faws-lambda-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261841815,"owners_count":23217909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","ruby","serverless"],"created_at":"2024-10-02T01:02:38.214Z","updated_at":"2026-04-28T01:31:32.360Z","avatar_url":"https://github.com/wmaciejak.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Lambda boilerplate\n\nThis repository serves as a clonable template for service AWS lambda service architecture.\n\nClone this repository, and change the services to suit the needs of your new\nservice. We have provided a few examples in the examples folder.\n\n## Good reads\n\nHere are some articles that we suggest you familiarize yourself with first:\n\n* [Terraform documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guide)\n\n## Setup\n\nTo setup the service, ensure that you have [terraform](https://www.terraform.io/) installed and localstack service operational.\n\nIf you're running the setup process locally, then execute the following block, otherwise you can skip it:\n\n```bash\ncd terraform/\ncat \u003e local.tf \u003c\u003c'EOF'\nterraform {\n  backend \"local\" {\n    path = \"tfstate/terraform.tfstate\"\n  }\n}\nEOF\n```\n\nRemember that this repository is responsible for definition of Lambda functions and it's not standalone - we cannot run it without integration to 3rd part services. To have operational endpoint where this logic will be attached we have to setup also the [Root Service](http://github.com/wmaciejak/aws-lambda-root-service)\n\n## Development\n\nThe repository contains a few directories:\n1. `examples` - contain many useful documents and sample requests which might be useful to gather knowledge about our services before touching code.\n2. `sources` - source code of our lambda functions\n3. `terraform` - defitions of terraform resources.\n\nCurrently, we have few Terraform files:\n1. `main.tf`      - localstack provider configuration.\n2. `resources.tf` - resource definitions such as DynamoDB, Lambda, etc.\n3. `outputs.tf`   - This file describes output of Terraform execution.\n4. `variables.tf` - definitions of global variables available in templates\n\n## Testing\n\nLambda functions are easily testable. To create tests for particular function we have to create tests in `specs` directory. To run tests just go to the `specs` directory and execute command `rspec lambda1_spec.rb`.\n\nRemember that in testing environment we don't have fully functional and repeatable routing environment so we have to mock all invocations of particular function.\n### Guides\n\nIf in guides you will find prefix `[Root Service]` it means that you have to setup this part inside [Root Service](http://github.com/wmaciejak/aws-lambda-root-service)\n\n1. [How to add new lambda function and integrate it with API Gateway](examples/new_endpoint.md)\n2. [How lambda argument - `event` may looks like](examples/sample_event.json)\n3. [How to create new Lambda Layer and provision it to function](examples/new_layer.md)\n4. [How to add new AWS service to Localstack and use it in Terraform](examples/new_service.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmaciejak%2Faws-lambda-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwmaciejak%2Faws-lambda-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmaciejak%2Faws-lambda-boilerplate/lists"}