{"id":20023424,"url":"https://github.com/niku/lambda_elixir_on_docker_example","last_synced_at":"2025-09-20T05:32:46.124Z","repository":{"id":66601503,"uuid":"335651908","full_name":"niku/lambda_elixir_on_docker_example","owner":"niku","description":"An AWS Lambda example that is built by Elixir on Docker container","archived":false,"fork":false,"pushed_at":"2021-03-24T14:31:54.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-13T08:46:25.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://twitter.com/niku_name/status/1356977338039193600","language":"Elixir","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/niku.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":"2021-02-03T14:31:46.000Z","updated_at":"2024-07-22T23:31:02.000Z","dependencies_parsed_at":"2023-02-27T10:16:27.457Z","dependency_job_id":null,"html_url":"https://github.com/niku/lambda_elixir_on_docker_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/niku%2Flambda_elixir_on_docker_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niku%2Flambda_elixir_on_docker_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niku%2Flambda_elixir_on_docker_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niku%2Flambda_elixir_on_docker_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niku","download_url":"https://codeload.github.com/niku/lambda_elixir_on_docker_example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233634054,"owners_count":18705951,"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-11-13T08:46:25.151Z","updated_at":"2025-09-20T05:32:45.696Z","avatar_url":"https://github.com/niku.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LambdaElixirOnDockerExample\n\nAn AWS Lambda example that is built by Elixir on Docker container\n\n# Motivation\n\n[mix_erllambda](https://github.com/alertlogic/mix_erllambda) already has a mix command `mix erllambda.release` that updates a function for AWS lambda.\nHowever, it uses a 3rd party library [distillery](https://github.com/bitwalker/distillery).\n\nTo keep deploy simple, this repository uses only standard library.\n(It uses docker container though :p)\n\n# How to use\n\n## Check it works on your local environment\n\n```\n$ git clone https://github.com/niku/lambda_elixir_on_docker_example\n$ cd lambda_elixir_on_docker_example\n$ docker build -t lambda_elixir_on_docker_example .\n$ docker container run --rm -p 9000:8080 lambda_elixir_on_docker_example\ntime=\"2021-02-03T13:50:08.821\" level=info msg=\"exec '/var/runtime/bootstrap' (cwd=/var/task, handler=)\"\n```\n\nand then start an other new terminal\n\n```\n$ curl -XPOST \"http://localhost:9000/2015-03-31/functions/function/invocations\" -d '{\"hello\": \"world\"}'\nhello~\n```\n\nIf you can see the response above, it has worked properly.\n\n## Push container image to Amazon ECR to use from AWS Lambda function\n\n```\n$ docker build -t lambda_elixir_on_docker_example .\n$ aws ecr create-repository --repository-name lambda-elixir-repo --region ap-northeast-1\n\"012345678901.dkr.ecr.ap-northeast-1.amazonaws.com/lambda-elixir-repo\"\n$ aws ecr get-login-password | docker login --username AWS --password-stdin 012345678901.dkr.ecr.ap-northeast-1.amazonaws.com/lambda-elixir-repo\n$ docker tag lambda_elixir_on_docker_example 012345678901.dkr.ecr.ap-northeast-1.amazonaws.com/lambda-elixir-repo\n$ docker push 012345678901.dkr.ecr.ap-northeast-1.amazonaws.com/lambda-elixir-repo\n```\n\n## Create an AWS Lambda function\n\nhttps://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniku%2Flambda_elixir_on_docker_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniku%2Flambda_elixir_on_docker_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniku%2Flambda_elixir_on_docker_example/lists"}