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?

gefragt vor 2 Jahren585 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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-TECHNIKER
Ryan_A
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen