1 Answer
- Newest
- Most votes
- Most comments
1
As documented here,
For key-value pairs where the value is selected using a path, the key name must end in .$
What you need to do is the following:
"Process chunk": {
"Type": "Task",
"Resource": "arn:aws:states:::states:startExecution",
"Parameters": {
"StateMachineArn": "arn:aws:states:us-west-1:12345:stateMachine:Ingestion-process-parts",
"Input.$": "$.input.MessageDetails"
},
"End": true,
"ResultPath": "$.input.MessageDetails"
}
Relevant content
- asked 5 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
Thanks Uri, that worked great!
I did, however, find that using "StateMachineArn.$": "$$.StateMachine.Id" resulted in an attempted recursion, rather than calling the function I wanted, so I left that as before.
My bad of course. I thought you are passing your own ARN. Of course you need to pass the ARN that you want to invoke so you are correct. Will edit my answer.