Hi, what is the easiest way to start a lambda func...
# prefect-aws
j
Hi, what is the easiest way to start a lambda function when a flow-run reaches a Completed state? I tried with Automations but it is not automatically built in. Optimally there would be a way to run a small python script after a flow run reaches a specific state. If that is possible, even with a workaround, it would be great
1
r
Cn you not use a custom trigger to spawn a notification using a webhook block
j
@redsquare you mean with an Automation? I do not really need a custom trigger since "Flow run State" is already a Trigger. What I need a script to be run instead of a notification being sent. Or maybe I understood you wrong?
r
yeah you use the completed flow run state to send a webhook 'notification'
🙏 1
that can hit a lambda
j
Oh I see. I did not know there was a webhook Block. That should work thanks!
👍 1
I will add the lambda use case thanks