回答

1

听起来好像你在问一个Cloudformation模板来用Lambda构建你的状态机。

AWS Step Functions支持Cloudformation模板,Cloudwatch事件触发器和API网关(如果您需要的话)。

在AWS文档中有一个很好的教程,可用于在Cloudformation中设置状态机。您可以在此处找到:http://docs.aws.amazon.com/step-functions/latest/dg/tutorial-lambda-state-machine-cloudformation.html

对于bash命令,您可以使用AWS CLI创建,删除和部署堆栈。以下是对文档的参考:http://docs.aws.amazon.com/cli/latest/reference/cloudformation/index.html

有关如何在CLI中使用Cloudformation的示例,请访问:http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-using-cli.html

要启动和停止执行,可以在此处找到AWS Step Functions CLI文档:http://docs.aws.amazon.com/cli/latest/reference/stepfunctions/index.html

希望这会有所帮助!

相关问题