2

这听起来很基础,但我如何编辑现有的状态机?

目前我所做的是使用以前版本的代码从头开始创建一个新的,这显然是荒谬的。

谢谢

4

3 回答 3

1

You can't. It doesn't make sense for UI, but it does for internal system. It would be disaster to run different versions of state machine at same time. To deal with update gracefully, they should support versions/deployments like Lambda, but currently it's not there.

At this point, probably the most user friendly approach is deploying state machines using CloudFormation template. https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-lambda-state-machine-cloudformation.html Be warned, it's slow and fails miserably when your SF code contains error - you have to delete CloudFormation stack before trying again.

So maybe your own little script is going to be more productive. Note how CloudFormation creates State Machine with your specified name + random characters MyName-PAIXTGYUBZJD. You could take any small sized hash of state machine code to generate unique suffix.

Maybe apex is going to support state machines in its glorious way. Vote here https://github.com/apex/apex/issues/698

于 2017-03-06T07:27:43.623 回答
1

更新:2017 年 11 月。

您现在终于可以编辑 Step Functions 了。

请参阅 Step Function 页面上新的“编辑状态机”按钮。

于 2017-11-21T11:45:48.533 回答
0

根据 AWS,Step Functions 的编辑和版本控制即将推出:https ://forums.aws.amazon.com/thread.jspa?threadID=244167

我们计划进行状态机的编辑和版本工作,同时创建一个新的状态机是您编辑状态机流程的方式

于 2017-03-14T09:39:17.270 回答