1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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"
}
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
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.