fernyettheplant / serverless-offline-step-functions

Serverless Offline Plugin to Support Step Functions for Local Development
MIT License
9 stars 5 forks source link

Implement `waitForTaskToken` for StepFunctions #23

Open sam-n-johnston opened 4 years ago

sam-n-johnston commented 4 years ago

Is your feature request related to a problem? Please describe.

The objective is to implement the waitForTaskToken for step functions. Something like this:

Lambda1:
  Type: Task
  Resource: arn:aws:states:::states:startExecution.waitForTaskToken # THIS IS THE IMPORTANT PART
  Parameters:
    StateMachineArn:
      Fn::GetAtt: ["myStateMachine", Arn]
    Input:
      TaskToken.$: "$$.Task.Token"
      AWS_STEP_FUNCTIONS_STARTED_BY_EXECUTION_ID.$: "$$.Execution.Id"

Currently, the Resource only works if it's a lambda. Other than this, I think SQS is the most used one after this.

sam-n-johnston commented 4 years ago

@jefer590 You can assign this to me, since I did the other waitForTaskToken, this is very similar.

davidjung1977 commented 3 years ago

Hi Sam, what about this feature? Do you going to launch it in the next months?