如何使用CloudWatch规则的触发器部署StepFunciton?如何通过CloudWatch规则将触发器部署到StepFunciton?
有无服务器工具的serverless-step-functions插件,但它尚未支持CloudWatch事件。
如果可以通过CloudFormation像这样部署管道,请提供一些示例CF模板和bash命令。
如何使用CloudWatch规则的触发器部署StepFunciton?如何通过CloudWatch规则将触发器部署到StepFunciton?
有无服务器工具的serverless-step-functions插件,但它尚未支持CloudWatch事件。
如果可以通过CloudFormation像这样部署管道,请提供一些示例CF模板和bash命令。
听起来好像你在问一个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。
希望这会有所帮助!