I need to get the ARN of the current execution for my state machine inside the state machine itself. Is it possible?
So can I create a state machine(say from a lambda function) and then take its execution ARN and pass it as a parameter to that machine OR is there any utility available inside the state machine that allows getting the execution ARN for that machine?
AWS Step Functions released recently a feature called context object.
Now you have access to the execution data through $$ inside the Parameters block.
https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html