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 4 months ago9 views
1 Answers
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.
Relevant questions
Using Access Points with S3 Batch
Accepted Answerasked 2 years agoAWS Batch - Job Stuck in RUNNABLE state
asked 3 years agoCan I specify GET URL path parameter in step function?
asked 3 months agoIs it possible to bill the marketplace customer for batch jobs executed in the seller account ?
asked a month agoCustomise emitted SNS message in state machine
Accepted Answerasked 10 days agoStep Function Retry Metrics
asked 3 months agoDoes AWS Batch support EC2 Spot stop/start and hibernation
Accepted Answerasked 4 years agoKeep amazon workspace windows machine unlocked
asked 2 months agoSet cpu and memory requirements for a Fargate AWS Batch job from an AWS Cloudwatch event
asked 2 months agoBatch ArrayProperties configured from input in Step Functions
Accepted Answerasked 4 months ago
Thanks; this works.