Is there a recommended way to re-run events? In se...
# help
j
Is there a recommended way to re-run events? In serverless framework, I would usually run something like:
Copy code
sls invoke local -f <handler> -d '<event>'
Is it better to use a local invokation with SAM or is there a way to leverage the live-lambda environment? My use case is to iteratively rerun a S3 upload notification event when an image processing handler fails and needs debugging.
g
the live console has a replay button https://console.serverless-stack.com
f
Thanks @Garret Harp!
@Jacob Hogenkamp @Jacob Hogenkamp You can use
replay
or invoke a lambda by providing the event object
j
Ah this is perfect, thank you @Garret Harp and @Frank!