serverless-step-functions-offline icon indicating copy to clipboard operation
serverless-step-functions-offline copied to clipboard

Error with step functions running using webpack

Open AhmedWael93 opened this issue 4 years ago • 4 comments

Having functions as files result in error like this (Function "GetEvents" does not presented in serverless manifest)

functions:
  - ${file(step-functions.yml)}
  - ${file(functions.yml)}

Serverless version:

"serverless": "^1.35.1" "serverless-step-functions-offline": "^2.1.4",

AhmedWael93 avatar Dec 16 '20 14:12 AhmedWael93

I guess this repo is no longer maintained. I can suggest a workaround for this issue.

  1. Make a copy of your serverless.yml
  2. Run serverless print in the console to resolve variables, paths, etc. Copy results.
  3. Replace serverless.yml with the results from step 2.
  4. Run sls step-functions-offline...

KrolKamil avatar Feb 11 '21 12:02 KrolKamil

@KrolKamil do you know another repo that runs step functions locally ?

AhmedWael93 avatar Feb 12 '21 16:02 AhmedWael93

@AhmedWael93 Unfortunately not ;;__;;

KrolKamil avatar Feb 15 '21 13:02 KrolKamil

@KrolKamil do you know another repo that runs step functions locally ?

Might be slightly late to the party on this one :laughing: But have been able to get this package working locally fairly well for https://github.com/ryanolee/pager-duty-sync/blob/master/serverless.yml ?

Though it uses a python runtime so had to fork the repo to get it working :(

ryanolee avatar Aug 01 '21 11:08 ryanolee