{"id":19455762,"url":"https://github.com/artemnikitin/lambda-code-example","last_synced_at":"2025-10-09T22:09:41.854Z","repository":{"id":48315222,"uuid":"167375207","full_name":"artemnikitin/lambda-code-example","owner":"artemnikitin","description":"Example of AWS Lambda's in Go","archived":false,"fork":false,"pushed_at":"2023-12-15T11:38:50.000Z","size":45,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T01:27:01.711Z","etag":null,"topics":["aws","aws-dynamodb","aws-ec2","aws-lambda","aws-sdk","example-code","example-project","examples","go","golang","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artemnikitin.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-24T13:51:03.000Z","updated_at":"2019-04-25T08:58:20.000Z","dependencies_parsed_at":"2025-01-08T01:26:23.394Z","dependency_job_id":"cd1eadfd-67ab-41d2-b79d-3e2c1ff847f0","html_url":"https://github.com/artemnikitin/lambda-code-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemnikitin%2Flambda-code-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemnikitin%2Flambda-code-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemnikitin%2Flambda-code-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemnikitin%2Flambda-code-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artemnikitin","download_url":"https://codeload.github.com/artemnikitin/lambda-code-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240654149,"owners_count":19835854,"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-dynamodb","aws-ec2","aws-lambda","aws-sdk","example-code","example-project","examples","go","golang","lambda","serverless"],"created_at":"2024-11-10T17:14:55.711Z","updated_at":"2025-10-09T22:09:36.810Z","avatar_url":"https://github.com/artemnikitin.png","language":"Go","readme":"![Build status](https://codebuild.us-east-1.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoicGU4OGU1UmNNbXpJZ3QwYnBZSXpmSDVRUTJhUkh5TUN5UmtQWmRpQTZ0dUJVMzFvSXR3WU0yd3hxYnFrN0ltVUtSTTN4TmZja3lCaVhEa3dvOTl5U0VFPSIsIml2UGFyYW1ldGVyU3BlYyI6IkRQdUFadlk2cElJZlBaY0giLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D\u0026branch=master)\n# lambda-code-example\nExamples of AWS Lambda code in Go\n\n### Setup\nYou need to install Go 1.11 or higher.    \nOn MacOS simply run `brew install go`. To install Go on other platforms check [official docs](https://golang.org/doc/install).\n\n### Run tests\nTo run tests simply invoke `make`. It will run linters and unit tests.\n\n### Run Lambda locally\n1) Install [AWS SAM CLI](https://github.com/awslabs/aws-sam-cli)\n2) Run it:     \n\nvia SAM CLI\n```bash\nmake build \nsam local generate-event dynamodb update | sam local invoke\n```\nor via make: \n```bash\nmake run-local\n```\n\n### Deploy Lambda with Terraform\n1) Install [Terraform](https://learn.hashicorp.com/terraform/getting-started/install.html)\n2) Run it:\n\nvia command line\n```bash\nmake build \u0026 terraform init \u0026 terraform apply -auto-approve\n```\nor via make: \n```bash\nmake tf-deploy\n```\n\n### Deploy Lambda with AWS SAM CLI\n1) Install [AWS SAM CLI](https://github.com/awslabs/aws-sam-cli)\n2) Run it:     \n\nvia SAM CLI\n```bash\nmake build\n\nsam package \\\n    --template-file template.yaml \\\n    --output-template-file serverless-output.yaml \\\n    --s3-bucket your-s3-bucket # put name of your S3 bucket here\n    \nsam deploy \\\n    --template-file serverless-output.yaml \\\n    --stack-name my-lambda-deployment \\\n    --capabilities CAPABILITY_IAM\n```\nor via make: \n```bash\nmake sam-deploy\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemnikitin%2Flambda-code-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartemnikitin%2Flambda-code-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemnikitin%2Flambda-code-example/lists"}