For a lambda executed within a step function, I want to know the current execution id of AWS State Machine within that. Is there a way to know this within the step function?
Old question but the answer is outdated - you can now get this inside the step function - with $$.Execution.id
. Example I'm using:
"run_task": {
"Type": "Task",
"Parameters": {
"task.$": "$.task",
"executionId.$": "$$.Execution.Id"
},
"Resource": "${runTaskLambdaArn}",
"End": true
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With