1 Answer
- Newest
- Most votes
- Most comments
0
In official documentation, States.ArrayContains
has the following limitations:
- You must specify an array as the input value for function's first argument.
- You must specify a valid JSON object as the second argument.
- The input array can't exceed Step Functions' payload size limit of 256 KB.
I tried your example but I couldn't reproduce the error.
answered 8 months ago
Relevant content
- Accepted Answerasked 2 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
I am also able to get it to work in the data flow simulator, but not in a state machine. I have updated my question showing how to recreate the issue.
Hmm... This is mysterious. The documentation says that you can nest up to 10 intrinsic functions within a field, but actually it is not likely to work for any type of the states.
As a workaround, you can define a intermediate state to convert the inputs to array first, and pass the array to
States.ArrayContains
for further process.Thanks for the temporary work around! It would be great if this bug gets fixed rather than having to bloat my step function though.