79388844

Date: 2025-01-26 16:13:27
Score: 1
Natty:
Report link

A rather new addition to step functions can easily solve the problem with a single state; however it would most probably require converting each of the states of your current step function from JSONPath to JSONata format.

"Arguments": {
       "foo": "{% $exists($states.context.Execution.Input.foo) ? $states.context.Execution.Input.foo : 'bar' %}"
}

For further reading:

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Equinox