Batch ArrayProperties configured from input in Step Functions

0

I'd like to have the size of a Batch job be configurable from inputs of a Step Function.

However, both:

"ArrayProperties": {
  "Size": "$.ArraySize"
}

and

"ArrayProperties": {
  "Size": $.ArraySize
}

do not work. The former complains that type, string, is invalid for the paramter, and the latter complains of a syntax error.

Is it what I'd like to achieve possible?

asked 2 years ago553 views
1 Answer
1
Accepted Answer

Hi,

This should be possible. Can you please try the following:

        "ArrayProperties": {
            "Size.$": "$.ArraySize"
        },

I have just tried this out and the size parameter now takes it's value from the input. Please check out this part of our documentation for additional details in setting parameters -> https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-parameters

If this does not work, kindly send your task state and I will check if I may have missed anything.

AWS
SUPPORT ENGINEER
Ryan_A
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions