/farquest

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

Primary LanguageJavaScript

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.