Invalid ARN Prefix, when using Execution ID in GetExecutionHistory

0

I'm trying to use the context object Execution ID as described here:

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

So I can call the getExecutionHistory API as a task in my step function so I can keep track of how many events happen and not go over the 25,000 threshold. However when I pass the $$.Execution.Id as a parameter to the API I get an Invalid ARN Prefix error.

What should I be doing differently? Can you not use the API to get a running Step Function's State Machine Event History?

已提问 2 个月前99 查看次数
1 回答
0

When calling APIs from tasks, you need to pass the execution ARN instead of the execution ID. You can access the execution ARN from the context object like this: "Parameters": { "ExecutionArn": "$$.Execution.Arn" }

AWS
已回答 2 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容