A lambda to kick off AWS Fargate Tasks from an SQS Event Source, return their response and handle task lifecycle.
-
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
fromtests/samples/event.json
with your custom SQS message body -
Execute the lambda with
npm start
, or alternativelly, by executing the container with adocker-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.
-
Configure your environment variables
-
Hit your lambda with a request
-
Profit
Nikolas V. Serafini ๐ป๐ ๐ ๐ ๐ง |
Pedro Gryzinsky ๐ป๐ ๐ ๐ ๐ง |
This project follows the all-contributors specification.