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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ