Retrieve or store AWS Step function Execution history older than 90 days.
I can see step function history wipes out after 90 days as per documentation.
But due to nature of user information and analysis for production support, i want execution history to be retrieved older than 90 days.
Is this provided by aws, or do we have to make provision out of the box to store it some where explicitly. and if we do so, will we be able to get pictorial representation of the execution.
thanks in advance.
Hi mongesh,
The 90 day retention period for execution history is a hard limit. If you want to preserve this for long term storage beyond 90 days, there are a few options:
1. Call GetExecutionHistory after the execution completes and archive it in persistent storage. You can use CloudWatch/EventBridge events that Step Functions emits [1] to trigger a Lambda function, for example, to retrieve the execution history for the execution.
2. Enable logging on your state machines to store the history in CloudWatch Logs [2]. Note that there is an additional cost for using CloudWatch Logs.
I hope that helps. I will pass a feature request to the team for being able to visualize the graph for an execution given an execution history.
1 - https://docs.aws.amazon.com/step-functions/latest/dg/cw-events.html
2 - https://docs.aws.amazon.com/step-functions/latest/dg/cw-logs.html
Relevant questions
Is there any limit to the number or age of events logged in CloudFormation event history?
Accepted Answerasked 7 months agoCan I specify GET URL path parameter in step function?
asked 3 months agoRe-invoke or re execute Step function execution with same name?
asked 5 years agoAmazon Athena query history report
Accepted Answerasked 2 years agoWill daily Cost Explorer costs history recover after disabling Hourly and Resource Level Granularity ?
Accepted Answerasked 5 days agoSpecifying Execution Name for Nested Step Functions
asked 2 years agoDoes changing a s3 lifecycle policy change all older objects in an s3 bucket?
asked 5 days agoStep Function to Send Email on Error/Success
asked 4 months agoRetrieve or store AWS Step function Execution history older than 90 days.
asked 2 years agoLatency in Step function for express workflow invoked from aws sdk java v2
asked 2 months ago