I am following this tutorial to run a simple fetch-and-run example in AWS batch. However, I'm unable to pass arguments to the script fetched through this example.
The basic example will produce this execution:
export BATCH_FILE_TYPE="script"
export BATCH_FILE_S3_URL="s3://my-bucket/my-script"
fetch_and_run.sh script-from-s3 [ <script arguments> ]
where script arguments are only mentioned in:
This shows that it supports two values for BATCH_FILE_TYPE, either “script” or “zip”. When you set “script”, it causes fetch_and_run.sh to download a single file and then execute it, in addition to passing in any further arguments to the script.
I tried passing them with AWS CLI through the --parameters
and --container-overrides
parameters (in the latter under the command
key), however they are not received from the script.
I would like not to modify either my Dockerfile ENTRYPOINT
for each run or the fetch_and_run.sh
script, but I cannot understand how to achieve this differently.