nullstone-io / nullstone

Nullstone is a customizable developer platform launched on your cloud accounts.
https://nullstone.io
MIT License
39 stars 1 forks source link

Ad-hoc lambda job #52

Open BSick7 opened 2 years ago

BSick7 commented 2 years ago

Summary

This feature allows a developer to create an app in Nullstone and trigger execution of a job from the CLI.

Intended Outcome

We currently support cron jobs and triggered jobs; however, there is no easy way to trigger a job manually. This feature would add a new CLI command nullstone run that runs a lambda function with a payload.

How will it work?

Here are examples of usage for nullstone run command:

nullstone run --app=<app> --env=<env>
nullstone run --app=<app> --env=<env> --payload='some string'
nullstone run --app=<app> --env=<env> --payload=@file_with_payload.json

This command would wait for completion and emit the result of the lambda function.