Aws command not found error

I’m coming across an issue when running a Nextflow pipeline in AWS Batch. The docker container being used should already have the aws cli installed. I’m wondering if anyone has any idea on how to resolve it.

Further it doesn’t look like the aws cli already installed in the docker container is actually being used.

ERROR ~ Error executing process > '<redacted>'

Caused by:
  Essential container in task exited

Command executed:
  <redacted>

Command exit status:
  127

Command output:
  (empty)

Command error:
  bash: aws: command not found
  bash: line 1: aws: command not found
aws {
    region = 'x' // Specify your AWS region
    cliPath = '/usr/local/bin/aws'
    }
}

Do you have something like the above in your config file?

That’s required for the containers to pick up aws