在 step 函数中获取 AWS 状态机执行 ARN [英] Getting AWS State machine execution ARN inside the step function

查看:34
本文介绍了在 step 函数中获取 AWS 状态机执行 ARN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在状态机本身中获取我的状态机当前执行的 ARN.可能吗?

I need to get the ARN of the current execution for my state machine inside the state machine itself. Is it possible?

那么我可以创建一个状态机(比如从 lambda 函数),然后获取它的执行 ARN 并将其作为参数传递给该机器,或者状态机内部是否有任何可用的实用程序允许获取执行 ARN机器?

So can I create a state machine(say from a lambda function) and then take its execution ARN and pass it as a parameter to that machine OR is there any utility available inside the state machine that allows getting the execution ARN for that machine?

推荐答案

AWS Step Functions 最近发布了一项名为上下文对象的功能.

AWS Step Functions released recently a feature called context object.

现在您可以通过 Parameters 块内的 $$ 访问执行数据.

Now you have access to the execution data through $$ inside the Parameters block.

https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html

这篇关于在 step 函数中获取 AWS 状态机执行 ARN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆