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?

posta 2 anni fa585 visualizzazioni
1 Risposta
1
Risposta accettata

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
TECNICO DI SUPPORTO
Ryan_A
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande