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?

已提问 2 年前586 查看次数
1 回答
1
已接受的回答

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
支持工程师
Ryan_A
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则