No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


AWS Lambda Orchestrator. Allows you to give a JSON workflow file written in the Amazon States Language, and execute lambda functions based on your workflow. You can open your workflow in the UI to see a tree diagram of your workflow, run the workflow based on the inputs you specify, and see the diagram update in real-time as your workflow runs on AWS. Executing your workflow requires that you have already created those lambda functions in AWS and have access to them.

Website (, npm package, and application coming soon! Stay tuned.


You need to have access to your lambda functions through the AWS CLI. To test whether you do, run this in your terminal:

aws lambda list-functions

You should see a list of your lambda functions.


Clone the repo and then run:

npm install

Creating workflows

The workflow files should be written in the Amazon States Language. The only difference between the workflow format and ASL is in the workflow syntax, you specify a "LambdaToInvoke" (which is just the name of the lambda function) instead of an arn "Resource". See test/json_workflow_file_test_cases for example workflow files. These examples are used by the unit tests in test/orcha.test.js

Running your workflow

To run your workflow, require the source file, and run executeWorkflow:

const orcha = require('./src/orcha);
orcha.executeWorkflow(jsonPath, workflowInput, region, callback);

jsonPath is the path to your workflow, workflowInput is the input to your first lambda, region is the AWS region where your lambdas are, and callback is a function that will run after your workflow is complete. For example, to run a workflow and log the result to the console, you could run:

orcha.executeWorkflow('test.json', {users: ['Alice', 'Bob', 'Charlie']}, 'us-east-1', (workflowOutput) => console.log(workflowOutput));

Using the UI

To run the UI run:

npm run client

You can then open a workflow file (Ctrl+O) to view the workflow tree. To run your workflow, enter a JSON object input into the input textbox, and run your workflow by entering Ctrl+R. You will see the lambda states change color as they are invoked and return from completion on AWS.

Running the tests

To run the unit tests:

npm test