Socket
Book a DemoInstallSign in
Socket

@developmentseed/task-runner

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@developmentseed/task-runner

A package for running AWS Lambda functions as ECS tasks for nodejs

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
5
Created
Source

@developmentseed/task-runner

Background

AWS Lambda functions are great but they don't fit a lot of processing and operation requirements. If your processing takes more than 5 minutes or it requires more memory and CPU provided in the Lambda environment, you must rethink where and how to deploy your code.

The ECS task-runner and task-starter solves this problem by enabling you to run an existing lambda function as an ECS task on a Fargate box. This approach requires having an existing lambda function in the first place.

Task Runner

The task runner is a Docker image that you can use inside the ECS environment to run existing Lambda function as ECS tasks. When a given a Lambda function ARN, the docker image downloads the zip file of the Lambda function and runs at in a similar environment to Lambda.

CLI

You can use the task-runner's CLI to invoke a Lambda Function with the docker environment by running:

 $ task-runner invoke <lambda arn> --profile <aws profile> --event <input to the lambda> --region <aws region>

You can run the same command in docker by running:

 $ docker run --rm -it developmentseed/lambda-ecs-runner:latest invoke <lambda arn> --profile <aws profile> --event <input to the lambda> --region <aws region>

FAQs

Package last updated on 30 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts