步骤如何在AWS量表中发挥作用?
尝试AWS步骤函数(下面的示例代码),如果将其连接到某个事件(例如S3对象通知),则创建的每个对象都会像Lambda实例一样旋转新的状态计算机/步骤函数。
data "template_file" "stepFunc" {
template = file("step-func-definition.json")
}
resource "aws_sfn_state_machine" "sfn_state_machine" {
name = "a-step-function"
role_arn = aws_iam_role.step_function_role.arn
definition = data.template_file.stepFunc.rendered
}
experimenting with aws step functions ( sample code below), if this is hooked up to a certain event, say s3 object notification , for each object created will it spin up a new state machine/step function like a lambda instance.
data "template_file" "stepFunc" {
template = file("step-func-definition.json")
}
resource "aws_sfn_state_machine" "sfn_state_machine" {
name = "a-step-function"
role_arn = aws_iam_role.step_function_role.arn
definition = data.template_file.stepFunc.rendered
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论