mbragg02
mbragg02

Reputation: 246

Using the Output JSON data returned from a nested Step Function

Im creating a POC with nested Step Functions (SF) and have hit the following issue.

Is there something im missing or a recommended approach to this scenario? I could "process" the escaped json string in a lambda or something but using it in the Choice task... but that kinda defeats the point of the nested SF workflow somewhat.

Any help appreciated.

Upvotes: 8

Views: 4399

Answers (2)

Gnarik
Gnarik

Reputation: 142

Not sure it's new since you asked the question but the answer is in the link you provided: Use "arn:aws:states:::states:startExecution.sync:2" in the task resource field instead of "arn:aws:states:::states:startExecution.sync"

state output type table

Upvotes: 5

catiyeh
catiyeh

Reputation: 21

I ran into the same issue. I used "OutputPath": "$.Output" at first and that returned the escaped json. I removed that and added "ResultPath": "$.Output", This works, it returns the output as json including the escaped version. Its ok for now until AWS addresses this.

Upvotes: 2

Related Questions