{"id":13486433,"url":"https://github.com/apex/apex","last_synced_at":"2025-03-27T20:33:13.973Z","repository":{"id":57479460,"uuid":"292521590","full_name":"apex/apex","owner":"apex","description":"Old apex/apex","archived":true,"fork":false,"pushed_at":"2020-09-03T09:15:16.000Z","size":2323,"stargazers_count":32,"open_issues_count":0,"forks_count":57,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-15T00:11:10.215Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/apex.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"tj"}},"created_at":"2020-09-03T09:13:32.000Z","updated_at":"2024-11-04T01:10:20.000Z","dependencies_parsed_at":"2022-09-17T05:02:12.437Z","dependency_job_id":null,"html_url":"https://github.com/apex/apex","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/apex%2Fapex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apex%2Fapex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apex%2Fapex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apex%2Fapex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apex","download_url":"https://codeload.github.com/apex/apex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245920695,"owners_count":20694142,"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-07-31T18:00:45.796Z","updated_at":"2025-03-27T20:33:13.464Z","avatar_url":"https://github.com/apex.png","language":"Go","funding_links":["https://github.com/sponsors/tj","https://opencollective.com/apex","https://opencollective.com/apex/sponsors/0/website","https://opencollective.com/apex/sponsors/0/avatar","https://opencollective.com/apex/sponsors/1/website","https://opencollective.com/apex/sponsors/1/avatar","https://opencollective.com/apex/sponsors/2/website","https://opencollective.com/apex/sponsors/2/avatar","https://opencollective.com/apex/sponsors/3/website","https://opencollective.com/apex/sponsors/3/avatar","https://opencollective.com/apex/sponsors/4/website","https://opencollective.com/apex/sponsors/4/avatar","https://opencollective.com/apex/backers/0/website","https://opencollective.com/apex/backers/0/avatar","https://opencollective.com/apex/backers/1/website","https://opencollective.com/apex/backers/1/avatar","https://opencollective.com/apex/backers/2/website","https://opencollective.com/apex/backers/2/avatar","https://opencollective.com/apex/backers/3/website","https://opencollective.com/apex/backers/3/avatar","https://opencollective.com/apex/backers/4/website","https://opencollective.com/apex/backers/4/avatar","https://opencollective.com/apex/backers/5/website","https://opencollective.com/apex/backers/5/avatar","https://opencollective.com/apex/backers/6/website","https://opencollective.com/apex/backers/6/avatar","https://opencollective.com/apex/backers/7/website","https://opencollective.com/apex/backers/7/avatar","https://opencollective.com/apex/backers/8/website","https://opencollective.com/apex/backers/8/avatar","https://opencollective.com/apex/backers/9/website","https://opencollective.com/apex/backers/9/avatar","https://opencollective.com/apex/backers/10/website","https://opencollective.com/apex/backers/10/avatar","https://opencollective.com/apex/backers/11/website","https://opencollective.com/apex/backers/11/avatar","https://opencollective.com/apex/backers/12/website","https://opencollective.com/apex/backers/12/avatar","https://opencollective.com/apex/backers/13/website","https://opencollective.com/apex/backers/13/avatar","https://opencollective.com/apex/backers/14/website","https://opencollective.com/apex/backers/14/avatar","https://opencollective.com/apex/backers/15/website","https://opencollective.com/apex/backers/15/avatar","https://opencollective.com/apex/backers/16/website","https://opencollective.com/apex/backers/16/avatar","https://opencollective.com/apex/backers/17/website","https://opencollective.com/apex/backers/17/avatar","https://opencollective.com/apex/backers/18/website","https://opencollective.com/apex/backers/18/avatar","https://opencollective.com/apex/backers/19/website","https://opencollective.com/apex/backers/19/avatar","https://opencollective.com/apex/backers/20/website","https://opencollective.com/apex/backers/20/avatar","https://opencollective.com/apex/backers/21/website","https://opencollective.com/apex/backers/21/avatar","https://opencollective.com/apex/backers/22/website","https://opencollective.com/apex/backers/22/avatar","https://opencollective.com/apex/backers/23/website","https://opencollective.com/apex/backers/23/avatar","https://opencollective.com/apex/backers/24/website","https://opencollective.com/apex/backers/24/avatar","https://opencollective.com/apex/backers/25/website","https://opencollective.com/apex/backers/25/avatar","https://opencollective.com/apex/backers/26/website","https://opencollective.com/apex/backers/26/avatar","https://opencollective.com/apex/backers/27/website","https://opencollective.com/apex/backers/27/avatar","https://opencollective.com/apex/backers/28/website","https://opencollective.com/apex/backers/28/avatar","https://opencollective.com/apex/backers/29/website","https://opencollective.com/apex/backers/29/avatar"],"categories":["Serverless Frameworks","Awesome Serverless CN [![Awesome](./media/badge.svg)](https://github.com/conanskyforce/awesome-serverless)","Go","Open Source Repos","Awesome Python","Service Toolkits"],"sub_categories":["Lambda","Serverless Frameworks","Polyglot"],"readme":"\n# No longer maintained\n\nThis software is no longer being maintainted and should not be chosen for new projects. See this [issue](https://github.com/apex/apex/issues/932) for more information\n\n![Apex Serverless Architecture](assets/title.png)\n\nApex lets you build, deploy, and manage [AWS Lambda](https://aws.amazon.com/lambda/) functions with ease. With Apex you can use languages that are not natively supported by AWS Lambda through the use of a Node.js shim injected into the build. A variety of workflow related tooling is provided for testing functions, rolling back deploys, viewing metrics, tailing logs, hooking into the build system and more.\n\nThis project is designed for event-driven pipelines as it does not abstract away FaaS (functions as a service). If you are building web applications, APIs, or sites, consider using [Apex Up](https://github.com/apex/up), which provides a more out-of-the-box experience for these use-cases.\n\n## Installation\n\nOn macOS, Linux, or OpenBSD run the following:\n\n```\ncurl https://raw.githubusercontent.com/apex/apex/master/install.sh | sh\n```\n\nNote that you may need to run the `sudo` version below, or alternatively chown `/usr/local`:\n```\ncurl https://raw.githubusercontent.com/apex/apex/master/install.sh | sudo sh\n```\n\nOn Windows download [binary](https://github.com/apex/apex/releases).\n\nAfter downloading, rename binary file 'apex.exe', then add to PATH.\n\nIf already installed, upgrade with:\n\n```\napex upgrade\n```\n\n## Runtimes\n\nCurrently supports:\n\n- Node.js\n- Golang\n- Python\n- Ruby\n- Java\n- Rust\n- Clojure\n\nExample projects for all supported runtimes can be found in [_examples](_examples) directory.\n\n## Features\n\n- Supports languages Lambda does not natively support via shim\n- Binary install (install apex quickly for continuous deployment in CI etc)\n- Hook support for running commands (transpile code, lint, dependency management, etc)\n- Batteries included but optional (opt-in to higher level abstractions)\n- Environment variable population via command-line, file, or inline config\n- Idempotent deployments (checksums skip already-deployed code)\n- Multiple environments via `project.ENV.json` and `function.ENV.json` files\n- Configuration inheritance and overrides\n- Command-line function invocation with JSON streams\n- Command \u0026 function name autocompletion\n- Function name globbing (ex: `apex deploy api_*`)\n- Transparently generates a zip for your deploy\n- Project bootstrapping with optional Terraform support\n- Function metrics and cost analysis\n- Ignore deploying files with .apexignore\n- Function rollback support\n- Tail function logs\n- Concurrency for quick deploys\n- Dry-run to preview changes\n- VPC support\n- Multiple region support\n- Lambda@Edge support\n\n## Sponsors\n\nDoes your company use Apex? Help keep the project bug-free and feature rich by [sponsoring the project](https://opencollective.com/apex#sponsor).\n\n  \u003ca href=\"https://opencollective.com/apex/sponsors/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/sponsors/0/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/sponsors/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/sponsors/1/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/sponsors/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/sponsors/2/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/sponsors/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/sponsors/3/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/sponsors/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/sponsors/4/avatar\"\u003e\u003c/a\u003e\n\n## Backers\n\nLove our work and community? [Become a backer](https://opencollective.com/apex).\n\n  \u003ca href=\"https://opencollective.com/apex/backers/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/0/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/1/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/2/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/3/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/4/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/5/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/5/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/6/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/6/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/7/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/7/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/8/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/8/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/9/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/9/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/10/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/10/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/11/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/11/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/12/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/12/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/13/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/13/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/14/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/14/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/15/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/15/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/16/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/16/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/17/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/17/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/18/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/18/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/19/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/19/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/20/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/20/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/21/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/21/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/22/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/22/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/23/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/23/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/24/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/24/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/25/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/25/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/26/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/26/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/27/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/27/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/28/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/28/avatar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/apex/backers/29/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/apex/backers/29/avatar\"\u003e\u003c/a\u003e\n\n## Example\n\nApex projects are made up of a `project.json` configuration file, and zero or more Lambda functions defined in the \"functions\" directory. Here's an example file structure:\n\n```\nproject.json\nfunctions\n├── bar\n│   ├── function.json\n│   └── index.js\n└── foo\n    ├── function.json\n    └── index.js\n```\n\nThe `project.json` file defines project level configuration that applies to all functions, and defines dependencies. For this simple example the following will do:\n\n```json\n{\n  \"name\": \"example\",\n  \"description\": \"Example project\"\n}\n```\n\nEach function uses a `function.json` configuration file to define function-specific properties such as the runtime, amount of memory allocated, and timeout. This file is completely optional, as you can specify defaults in your `project.json` file. For example:\n\n```json\n{\n  \"name\": \"bar\",\n  \"description\": \"Node.js example function\",\n  \"runtime\": \"nodejs4.3\",\n  \"memory\": 128,\n  \"timeout\": 5,\n  \"role\": \"arn:aws:iam::293503197324:role/lambda\"\n}\n```\n\nNow the directory structure for your project would be:\n\n```\nproject.json\nfunctions\n├── bar\n│   └── index.js\n└── foo\n    └── index.js\n```\n\nFinally the source for the functions themselves look like this in Node.js:\n\n```js\nconsole.log('start bar')\nexports.handle = function(e, ctx) {\n  ctx.succeed({ hello: e.name })\n}\n```\n\nApex operates at the project level, but many commands allow you to specify specific functions. For example you may deploy the entire project with a single command:\n\n```\n$ apex deploy\n```\n\nOr whitelist functions to deploy:\n\n```\n$ apex deploy foo bar\n```\n\nInvoke it!\n\n```\n$ echo '{ \"name\": \"Tobi\" }' | apex invoke bar\n{ \"hello\": \"Tobi\" }\n```\n\nSee the [Documentation](http://apex.run) for more information.\n\n## Links\n\n- [Website](http://apex.run)\n- [Medium](https://medium.com/@tjholowaychuk)\n- [Slack](https://chat.apex.sh/)\n\n---\n\n[![Build Status](https://semaphoreci.com/api/v1/projects/d27ff350-b9c5-4d99-96e5-64b1afb441c5/649392/badge.svg)](https://semaphoreci.com/tj/apex)\n[![Slack Status](https://apex-slackin.herokuapp.com/badge.svg)](https://apex-slackin.herokuapp.com/)\n[![GoDoc](https://godoc.org/github.com/apex/apex?status.svg)](https://godoc.org/github.com/apex/apex)\n![](https://img.shields.io/badge/license-MIT-blue.svg)\n![](https://img.shields.io/badge/status-stable-green.svg) [![OpenCollective](https://opencollective.com/apex/backers/badge.svg)](#backers) [![OpenCollective](https://opencollective.com/apex/sponsors/badge.svg)](#sponsors)\n\n\u003ca href=\"https://apex.sh\"\u003e\u003cimg src=\"http://tjholowaychuk.com:6000/svg/sponsor\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapex%2Fapex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapex%2Fapex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapex%2Fapex/lists"}