{"id":13681936,"url":"https://github.com/uswitch/lambada","last_synced_at":"2025-04-30T06:32:56.132Z","repository":{"id":33819706,"uuid":"37517004","full_name":"uswitch/lambada","owner":"uswitch","description":"A more passionate way to write AWS Lambda functions","archived":true,"fork":false,"pushed_at":"2016-11-06T05:00:31.000Z","size":19,"stargazers_count":316,"open_issues_count":1,"forks_count":21,"subscribers_count":59,"default_branch":"master","last_synced_at":"2024-10-13T16:59:44.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uswitch.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":"2015-06-16T08:12:18.000Z","updated_at":"2024-09-17T19:20:12.000Z","dependencies_parsed_at":"2022-08-07T23:16:11.068Z","dependency_job_id":null,"html_url":"https://github.com/uswitch/lambada","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/uswitch%2Flambada","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Flambada/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Flambada/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Flambada/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uswitch","download_url":"https://codeload.github.com/uswitch/lambada/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224201779,"owners_count":17272644,"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":[],"created_at":"2024-08-02T13:01:37.995Z","updated_at":"2024-11-12T01:30:43.448Z","avatar_url":"https://github.com/uswitch.png","language":"Clojure","funding_links":[],"categories":["Clojure"],"sub_categories":[],"readme":"# lambada\n\nCreate more passionate AWS Lambda functions using clojure.\n\nCurrent version:\n\n[![Clojars Project](http://clojars.org/uswitch/lambada/latest-version.svg)](http://clojars.org/uswitch/lambada)\n\n## Usage\n\nYou can define a Lambda handler using the `deflambdafn` macro provided\nby `uswitch.lambada.core`:\n\n```clojure\n(ns example.lambda\n  (:require [uswitch.lambada.core :refer [deflambdafn]]))\n\n(deflambdafn example.lambda.MyLambdaFn\n  [in out ctx]\n  (println \"OMG I'm running in the cloud!!!111oneone\"))\n```\n\nWhen this namespace is AOT compiled, it will generate a class called\n`example.lambda.MyLambdaFn` that implements the AWS Lambda\n[`RequestStreamHandler`](http://docs.aws.amazon.com/lambda/latest/dg/java-handler-using-predefined-interfaces.html)\ninterface using the args and body provided.\n\nSimplest way to deploy is to create an uberjar using leiningen or boot\nand then use that as the JAR you upload to AWS Lambda. Assuming you\nhave an uberjar called `my-lambda-project.jar` in `target`, the\nfollowing commands will do the job:\n\n```\n$ aws lambda create-function \\\n    --region eu-west-1 \\\n    --function-name my-lambda-project \\\n    --zip-file fileb://$(pwd)/target/my-lambda-project.jar \\\n    --role arn:aws:iam::YOUR-AWS-ACCOUNT-ID:role/lambda_basic_execution \\\n    --handler example.lambda.MyLambdaFn \\\n    --runtime java8 \\\n    --timeout 15 \\\n    --memory-size 512\n...\n\n$ aws lambda invoke \\\n    --invocation-type RequestResponse \\\n    --function-name my-lambda-project \\\n    --region eu-west-1 \\\n    --log-type Tail \\\n    --payload '{\"some\":\"input\"}' \\\n    outfile.txt\n...\n\n```\n\nSee [example](https://github.com/uswitch/lambada/tree/master/example) for an example project.\n\n# License\n\nCopyright © 2015 Ragnar Dahlen.\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuswitch%2Flambada","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuswitch%2Flambada","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuswitch%2Flambada/lists"}