Skip to content

A lambda to kick off a AWS Fargate Task with a payload and retrieve it's response

Notifications You must be signed in to change notification settings

shino1486/farquest

 
 

Repository files navigation

Farquest

Commitizen friendly

Logo

A lambda to kick off AWS Fargate Tasks from an SQS Event Source, return their response and handle task lifecycle.

Running locally

  • Clone the repository

  • Install the depedencies running:

    npm i
  • Create your custom .env file following the example provided .env.example

  • Create your custom tests/event.json from tests/samples/event.json with your custom SQS message body

  • Execute the lambda with npm start, or alternativelly, by executing the container with a docker-compose run --service-ports --rm lambda

    If running through the container, remember to build the image first. Also, you could try nicely ask docker for container operations if you're into it.

Running in AWS Lambda

  • Configure your environment variables

  • Hit your lambda with a request

  • Profit

Contributors

Nikolas V. Serafini
Nikolas V. Serafini

💻🚇 📖 👀 🚧
Nikolas V. Serafini
Pedro Gryzinsky

💻🚇 📖 👀 🚧

This project follows the all-contributors specification.

About

A lambda to kick off a AWS Fargate Task with a payload and retrieve it's response

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.2%
  • Shell 6.8%
  • Dockerfile 1.0%