{"id":19269036,"url":"https://github.com/borgoat/lambda-builders-go","last_synced_at":"2025-02-23T20:11:49.828Z","repository":{"id":57576281,"uuid":"356836700","full_name":"borgoat/lambda-builders-go","owner":"borgoat","description":"Call aws-lambda-builders from Go via JSON-RPC","archived":false,"fork":false,"pushed_at":"2021-04-13T14:21:34.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-01-05T12:42:22.827Z","etag":null,"topics":["aws","lambda","serverless"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borgoat.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":"2021-04-11T10:26:57.000Z","updated_at":"2021-04-13T14:19:06.000Z","dependencies_parsed_at":"2022-08-29T00:51:43.142Z","dependency_job_id":null,"html_url":"https://github.com/borgoat/lambda-builders-go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgoat%2Flambda-builders-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgoat%2Flambda-builders-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgoat%2Flambda-builders-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgoat%2Flambda-builders-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borgoat","download_url":"https://codeload.github.com/borgoat/lambda-builders-go/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240371761,"owners_count":19790888,"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","lambda","serverless"],"created_at":"2024-11-09T20:18:12.940Z","updated_at":"2025-02-23T20:11:49.781Z","avatar_url":"https://github.com/borgoat.png","language":"Go","readme":"# Lambda Builders Go\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/borgoat/lambda-builders-go.svg)](https://pkg.go.dev/github.com/borgoat/lambda-builders-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/borgoat/lambda-builders-go)](https://goreportcard.com/report/github.com/borgoat/lambda-builders-go)\n[![GitHub license](https://img.shields.io/github/license/borgoat/lambda-builders-go?color=yellow)](https://github.com/borgoat/lambda-builders-go/blob/development/LICENSE)\n\nGo wrapper for [AWS Lambda Builders](https://github.com/aws/aws-lambda-builders),\nusing its JSON-RPC API.\n\n\u003e Lambda Builders is a Python library to compile, build and package AWS Lambda functions for several runtimes \u0026 frameworks.\n\n## Getting Started\n\nFirst, the lambda-builders executable is required:\n\n```shell\n$ pip install --user aws-lambda-builders\n```\n\nNow, download this module:\n\n```shell\n$ go get -u github.com/borgoat/lambda-builders-go\n```\n\nHere is an example how to use this library:\n\n```go\npackage main\n\nimport lambdabuilders \"github.com/borgoat/lambda-builders-go\"\n\nfunc main() {\n\t// Client executes lambda-builders and uses JSON-RPC to communicate with it\n\tclient, err := lambdabuilders.NewClient()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Here we create a new builder for a Lambda written in Go, using Go Modules \n\t// Other workflows may be found in the aws-lambda-builders Python library:\n\t// https://github.com/aws/aws-lambda-builders/tree/develop/aws_lambda_builders/workflows\n\tb, err := client.NewBuilder(\"go\", \"modules\", \"\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Finally we actually call LambdaBuilders.build\n\t// Check out how to configure it from the Python library:\n\t// https://github.com/aws/aws-lambda-builders/blob/165f92f35753d87e4abe1115fd2399826b371e1f/aws_lambda_builders/builder.py#L56-L67\n\terr = b.Build(\n\t\t\"/path/to/source\",\n\t\t\"/path/to/compile\",\n\t\t\"/path/to/scratchdir\",\n\t\t\"/path/to/source/go.mod\",\n\t\tlambdabuilders.WithRuntime(\"go1.x\"),\n\t\tlambdabuilders.WithOptions(map[string]interface{}{\n\t\t\t\"artifact_executable_name\": \"my-handler\",\n\t\t}),\n\t)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborgoat%2Flambda-builders-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborgoat%2Flambda-builders-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborgoat%2Flambda-builders-go/lists"}