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?

demandé il y a 2 ans585 vues
1 réponse
1
Réponse acceptée

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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
Ryan_A
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions