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?

preguntada hace 2 meses99 visualizaciones
1 Respuesta
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
respondido hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas