1

I am trying to run locally a serverless application, but it is throwing this error:

Stack with id <my_stack_id> does not exist

I didn't deploy the stack yet, just trying to run it locally. It is possible that the offline serverless plugin only works with an existing deployed stack?

peterh
  • 11,875
  • 18
  • 85
  • 108
cracksuxer
  • 13
  • 3
  • Hello, offline should work without prior deployments. Could you please share a bit more about your current setup? – pgrzesik Feb 06 '22 at 20:52
  • "Serverless offline"... while the question looks well, I think the common terminology for the cloud computing still needs some improvement. – peterh Feb 07 '22 at 11:41

1 Answers1

1

You don't need to deploy your stack

Things you need to have to use serverless offline :

plugins:
  - serverless-offline

in your serverless.yml file

then run the command sls offline start

then you can call your lambda functions with sls invoke local

TheSmartMonkey
  • 857
  • 1
  • 7
  • 23