Hey Guys, Maybe a pretty basic question, but I'm c...
# sst
j
Hey Guys, Maybe a pretty basic question, but I'm coding a cron that every day pushes tasks to SQS. And then I have a consumer function that does most of the work. Now, I'm building the consumer function first, that's the most complex. Is there an easy way to run this consumer function from console, instead of pushing tasks to SQS all the time to see if it works?
kinda like
sls invoke local -f functionname
f
Right now there isn’t a way to do it in the console. It’s been requested - https://github.com/serverless-stack/serverless-stack/discussions/270
j
cool, thanks Frank.
f
For now, the easiest work around is… if you
console.log(event)
inside ur Lambda
j
?
f
copy the event object > go to AWS Lambda console > select the consumer function > paste the event object in > Invoke
j
ok, so invoke it from AWS console.
got it.
f
yup
j
It's mainly just for dev experience and easy testing
f
Yeah for sure. I’m going to bump up the priority on this.
I felt the pain too when I was working with Crons especially
j
yeah, waiting for the 5 min mark is agony 😄