{"id":20278752,"url":"https://github.com/zrierc/gin-lambda","last_synced_at":"2026-04-18T13:31:13.316Z","repository":{"id":110150521,"uuid":"550723558","full_name":"zrierc/gin-lambda","owner":"zrierc","description":"Implement deploying Go Gin-Gonic App on AWS Lambda with several methods ","archived":false,"fork":false,"pushed_at":"2022-10-14T10:08:35.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T01:18:17.959Z","etag":null,"topics":["aws-lambda","gin-gonic","golang","lambda"],"latest_commit_sha":null,"homepage":"","language":"Go","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/zrierc.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":"2022-10-13T08:15:11.000Z","updated_at":"2022-10-13T09:55:36.000Z","dependencies_parsed_at":"2023-09-01T02:12:11.992Z","dependency_job_id":null,"html_url":"https://github.com/zrierc/gin-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zrierc/gin-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrierc%2Fgin-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrierc%2Fgin-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrierc%2Fgin-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrierc%2Fgin-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zrierc","download_url":"https://codeload.github.com/zrierc/gin-lambda/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrierc%2Fgin-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273993049,"owners_count":25203793,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-lambda","gin-gonic","golang","lambda"],"created_at":"2024-11-14T13:26:07.900Z","updated_at":"2026-04-18T13:31:13.309Z","avatar_url":"https://github.com/zrierc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Gin-Gonic Project\n\n## Getting Started\n\n### Pre-Requisite\n\n- AWS Account and [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) version `2.x`.\n- [Go](https://go.dev/doc/install) version `\u003e= 1.19`.\n- AWS [SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html) version `1.5x.x`.\n\n### Install\n\nInstall required packages/dependencies by executing command:\n\n```bash\ngo get .\n```\n\n### Test\n\nTo running test, execute the following commnad:\n\n```bash\ngo test\n```\n\n### Run (Development Mode)\n\nStart local development app by executing command:\n\n```bash\ngo run main.go\n```\n\nThe app will run at [http://localhost:8080](http://localhost:8080).\n\n# Deployment\n\nThis project is intended to be deployed to [AWS Lambda](https://aws.amazon.com/lambda/). There are several ways to deploy Gin to AWS Lambda, both methods require [AWS Serverless Application Model (SAM)](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html).\n\n- The first method is using [lambda-web-adapter](https://github.com/awslabs/aws-lambda-web-adapter).\n- Another method is using [lambda-go-api-proxy](https://github.com/awslabs/aws-lambda-go-api-proxy).\n\n**Check out each branch of this repository to learn more about each deployment.**\n\n\u003e The project is hosted and working fine on AWS Lambda as it runs with HTTP 1.0/1.1.\n\u003e\n\u003e In a nutshell, Lambda will run if triggered by event(s). On such event(s), AWS will spawn up lightweight Virtual Machine, load and execute the user-defined Lambda function, return the computed response, and kill the VM. While [gRPC](https://grpc.io/), need an active server. So, until now it is possible to make Lambda a [gRPC](https://grpc.io/) client, but not as a [gRPC](https://grpc.io/) server.\n\u003e\n\u003e Please read [this article](https://aws.plainenglish.io/invoking-aws-lambda-with-grpc-protobuf-431483a869e8) to learn more about AWS Lambda with gRPC. [This coinbase blog](https://blog.coinbase.com/grpc-to-aws-lambda-is-it-possible-4b29a9171d7f) explains well the different approaches they tried to achieve for combining gRPC and Lambda.\n\n## References\n\nHere are the resources that might help to learn more about each deployment method:\n\n- [AWS Lambda Documentation](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html).\n- [AWS Serverless Application Model (SAM) Documentation](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html).\n- [AWS lambda-web-adapter Documentation](https://github.com/awslabs/aws-lambda-web-adapter#aws-lambda-web-adapter).\n- [AWS lambda-go-api-proxy Documentation](https://github.com/awslabs/aws-lambda-go-api-proxy#aws-lambda-go-api-proxy-).\n\nIf you have questions or found any problem let me know by opening issue - your feedback and contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrierc%2Fgin-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzrierc%2Fgin-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrierc%2Fgin-lambda/lists"}