Sam Hulick
08/12/2021, 6:23 AMyarn start
if they’re not part of an API? 🤔 say I have 5 functions that are part of a step function, and I want to just test one of those in isolation. in Serverless Framework, I could just use sls invoke local -f
to do this.Kujtim Hoxha
08/12/2021, 6:51 AMSam Hulick
08/12/2021, 7:22 AMKujtim Hoxha
08/12/2021, 7:23 AMFrank
yarn start
, with stub code that sends requests to ur local.Frank
Sam Hulick
08/12/2021, 3:03 PMSam Hulick
08/12/2021, 7:51 PMyarn deploy
and then yarn start
. there’s no API endpoint so I can’t invoke the function locally. so there doesn’t seem to be feature parity with Serverless Framework’s sls invoke local -f
.
so in the docs here (https://docs.serverless-stack.com/migrating-from-serverless-framework#invoking-locally) , it might be more accurate to say that the equivalent to sls invoke local
is to go into the AWS Console, go to the function, and test thereSam Hulick
08/12/2021, 7:51 PMSam Hulick
08/12/2021, 7:52 PMSam Hulick
08/12/2021, 7:56 PMsst start
mode, if my Lambda function executes /bin/whatever
, is it going to do that locally or in the cloud?Frank
in the AWS console I’d see something like “myfunc” and “myfunc-debug”?You will just see “myfunc”. In
sst start
mode, the same Lambda functions are deployed, just the code has been swapped with the stub code. So the same function name in the console.
the equivalent toWe are working on a UI console where you can invoke ur functions directly. For now, bare with the console 😉is to go into the AWS Consolesls invoke local
if my Lambda function executesIf you mean the function does a, is it going to do that locally or in the cloud?/bin/whatever
spawn
to run a script, yes that will be run locally.Sam Hulick
08/12/2021, 8:11 PMSam Hulick
08/12/2021, 8:14 PM