{"id":26139803,"url":"https://github.com/leanstacks/sam-samples","last_synced_at":"2026-05-16T08:36:59.821Z","repository":{"id":59002007,"uuid":"528859739","full_name":"leanstacks/sam-samples","owner":"leanstacks","description":"Welcome to the LEANSTACKS SAM Samples project. This repository contains samples and snippets of AWS Serverless Application Model code.","archived":false,"fork":false,"pushed_at":"2022-09-22T12:52:42.000Z","size":518,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T02:21:40.246Z","etag":null,"topics":["aws","aws-api-gateway","aws-lambda","aws-sam","javascript"],"latest_commit_sha":null,"homepage":"https://leanstacks.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leanstacks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-25T13:18:54.000Z","updated_at":"2022-08-27T10:27:09.000Z","dependencies_parsed_at":"2023-01-18T18:34:29.433Z","dependency_job_id":null,"html_url":"https://github.com/leanstacks/sam-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leanstacks/sam-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanstacks%2Fsam-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanstacks%2Fsam-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanstacks%2Fsam-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanstacks%2Fsam-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leanstacks","download_url":"https://codeload.github.com/leanstacks/sam-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanstacks%2Fsam-samples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266210832,"owners_count":23893336,"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-api-gateway","aws-lambda","aws-sam","javascript"],"created_at":"2025-03-11T02:37:05.907Z","updated_at":"2026-05-16T08:36:54.797Z","avatar_url":"https://github.com/leanstacks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SAM Samples\n\nSamples and snippets of application components constructed using [AWS SAM, Serverless Application Model][aws-sam].\n\nAll samples are authored in JavaScript for the Node.js AWS Lambda runtime.\n\n## Acknowledgements\n\nThis is a [LEAN**STACKS**][leanstacks] solution.\n\n## What's Inside\n\nEach sub-directory contains a sample project illustrating a specific feature or group of features. Some samples build upon concepts from other samples.\n\nIf you are new to serverless software engineering or simply looking for a table of contents, the list below is a general guideline for exploring the samples in this repository in a meaningful order.\n\n### rest-hello\n\nThe [rest-hello](./rest-hello/README.md) sample is an introduction to AWS SAM. Deploy a \"Hello World\" REST API application demonstrating how to handle events from the API Gateway in AWS Lambda.\n\n### rest-dynamodb\n\nThe [rest-dynamodb](./rest-dynamodb/README.md) sample introduces using DynamoDB with AWS SAM. This is a basic example of how to implement REST API endpoints which provide CRUD operations for a simple business domain _\"Item\"_. Data for the REST resource is persisted in DynamoDB.\n\nThis sample application is the introductory example for using DynamoDB. This project contains other DynamoDB samples which build upon this one.\n\n### rest-dynamodb-local\n\nThe [rest-dynamodb-local](./rest-dynamodb-local/README.md) sample builds upon the `rest-dynamodb` sample. This sample demonstrates how to run the SAM application locally with DynamoDB.\n\n### rest-dynamodb-modular\n\nThe [rest-dynamodb-modular](./rest-dynamodb-modular/README.md) sample illustrates how to implement REST services with a more modular code structure. This sample builds on the `rest-dynamodb-local` sample. Many of the samples in this project illustrate a particular Serverless concept and all of the logic is contained within the function handler. While this serves to illustrate the concept of the example, it is not meant to illustrate best practices when creating serverless applications.\n\n### rest-middy\n\nThe [rest-middy](./rest-middy/README.md) sample SAM application introduces the `Middy` middleware package. Middy allows you to reduce boilerplate code, moving it into reusable middlewares which you may reuse across your functions. This allows your engineers to focus on the business logic of the function rather than the non-functional code.\n\n### rest-middy-modular\n\nThe [rest-middy-modular](./rest-middy-modular/README.md) sample SAM application builds upon the `rest-middy` sample. This sample demonstrates how to organize the source into a more modular structure with the Single Responsibility Principle (SRP) in mind. This sample also demonstrates how to create your own Middy middleware.\n\n## See Also\n\n[LEAN**STACKS**][leanstacks]  \n[LEAN**STACKS** Serverless [Framework] Samples](https://github.com/leanstacks/serverless-samples)  \n[AWS Serverless Application Model][aws-sam]  \n[AWS SAM Documentation][aws-sam-docs]  \n[AWS SAM Examples Repository][aws-sam-repos-examples]\n\n[leanstacks]: https://leanstacks.com/ 'LEANSTACKS'\n[aws-sam]: https://aws.amazon.com/serverless/sam/ 'AWS Serverless Application Model (SAM)'\n[aws-sam-docs]: https://docs.aws.amazon.com/serverless-application-model/index.html 'SAM Documentation'\n[aws-sam-repos-examples]: https://github.com/amazon-archives/serverless-app-examples 'SAM Examples Repo'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanstacks%2Fsam-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanstacks%2Fsam-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanstacks%2Fsam-samples/lists"}