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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠