{"id":18696548,"url":"https://github.com/swarajkumarsingh/aws-lambda-go","last_synced_at":"2026-05-04T14:45:09.969Z","repository":{"id":216317935,"uuid":"740984024","full_name":"swarajkumarsingh/aws-lambda-go","owner":"swarajkumarsingh","description":"Detailed Demonstration how to use Deploy Golang Server to AWS API-GATEWAY \u0026 AWS Lambda via serverless framework","archived":false,"fork":false,"pushed_at":"2024-01-09T17:23:51.000Z","size":4328,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T00:38:37.840Z","etag":null,"topics":["api-gateway","aws","cloud-computing","go","lambda"],"latest_commit_sha":null,"homepage":"https://github.com/swarajkumarsingh/aws-lambda-go","language":"Go","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/swarajkumarsingh.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-09T13:21:36.000Z","updated_at":"2024-08-30T12:55:52.000Z","dependencies_parsed_at":"2024-01-16T10:34:46.283Z","dependency_job_id":"8b0fc45d-0eef-41a3-81bc-3631748f0562","html_url":"https://github.com/swarajkumarsingh/aws-lambda-go","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"2326ada8826b1f4d5c62ce136ef0922fa93bbe24"},"previous_names":["swarajkumarsingh/aws-lambda-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swarajkumarsingh/aws-lambda-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swarajkumarsingh%2Faws-lambda-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swarajkumarsingh%2Faws-lambda-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swarajkumarsingh%2Faws-lambda-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swarajkumarsingh%2Faws-lambda-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swarajkumarsingh","download_url":"https://codeload.github.com/swarajkumarsingh/aws-lambda-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swarajkumarsingh%2Faws-lambda-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32612318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-gateway","aws","cloud-computing","go","lambda"],"created_at":"2024-11-07T11:19:28.649Z","updated_at":"2026-05-04T14:45:09.940Z","avatar_url":"https://github.com/swarajkumarsingh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploying a Go Server to AWS Lambda\n\nThis repository provides a simple guide and example code for deploying a Go server to AWS Lambda. By leveraging AWS Lambda, you can host your Go application with minimal infrastructure management and cost.\n\n\n![a-removebg-preview](https://github.com/swarajkumarsingh/aws-lambda-go/assets/89764448/501bcd84-3b45-41ef-b7f0-e979199062ee)\n\n## Table of Contents\n\n- [Prerequisites](#prerequisites)\n- [Getting Started](#getting-started)\n- [Configuration](#configuration)\n- [Building the Go Server](#building-the-go-server)\n- [Deploying to AWS Lambda](#deploying-to-aws-lambda)\n- [Testing](#testing)\n- [Clean-Up](#clean-up)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Prerequisites\n\nBefore you begin, make sure you have the following installed and set up:\n\n- [Go](https://golang.org/doc/install)\n- [Serverless CLI](https://www.serverless.com/framework/docs/getting-started)\n\n## Getting Started\n\nClone this repository to your local machine:\n\n```bash\ngit clone https://github.com/swarajkumarsingh/aws-lambda-go.git\ncd aws-lambda-go\n```\n\n## Building the Go Server\nBuild your Go server binary:\n\n```\nmake build\n```\n\n```\nmake build-windows (for windows optional)\n```\n\n## Configuration\nserverless.yml - file contains all configs related to deployment options\n```\nservice: serverless-rest-api-3\nframeworkVersion: '\u003e=1.28.0'\nprovider:\n  name: aws\n  runtime: go1.x\n  stage: ${opt:stage, 'dev'}\n  region: ap-south-1\n\nfunctions:\n  api:\n    handler: bin/main\n    events:\n      - http:\n          path: /ping\n          method: get\n          cors: true\n      \npackage:\n  patterns:\n    - '!*/**'\n    - bin/main\n```\n\n## Deploying to AWS Lambda\nUse serverless cli for deploying\n```\nmake deploy(this will build the project and deploy it)\n``` \n\n## Testing\nAfter you deploy, you will be given a url\n```\ncurl \u003cgive-url\u003e\n``` \n\n## Clean-Up\n```\n- Head to your AWS console\n- Search 'CloudFormation'\n- Select your stack via name\n- Delete it\n- Verify this, by going to lambda make sure there is no running lambda function via your project name\n```\n\n## Contributing\nIf you find any issues or have improvements, feel free to open an issue or submit a pull request. Contributions are welcome!\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswarajkumarsingh%2Faws-lambda-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswarajkumarsingh%2Faws-lambda-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswarajkumarsingh%2Faws-lambda-go/lists"}