StepFunction serverless plugin-How to update existing Stepfunction using UpdateStateMachine API

AWS has recently release functionality to update state machine (see https://aws.amazon.com/about-aws/whats-new/2017/11/aws-step-functions-adds-support-for-updating-state-machines/).

I was wondering if serverless step functions plugin (serverless-step-functions) is supporting this yet ?

Thanks
M

Thank you for using this plugin! @ajmal744
Yes, already supported that!
It works with the update mode if you specify name statement under stepFunctions section in serverless.yml

Thanks a lot for response.

Sorry for being naive, what do you mean by “update mode” ? Do you have an example of it please ?

@ajmal744
Here is a sample.
it is deployed with updating state machine if you specify name section.
On the other hand, if you don’t specify the name, it is deployed with creating state machine every deployment

stepFunctions:
  stateMachines:
    sendMessageFunc:
      name: yourStatemachineName
      definition:
        <your definition>