I keep getting this error (see log file) when attempting to spin off a job to AWS batch.
-IAM role is set to root (full permissions)
-Bucket is in same region (.command.run, .sh are written there by nextflow on execution)
-AWS CLI tools installed on both host and docker (running on ECS)
Additionally this is the error log produced on the AWS side
20:34:42 download failed: s3://samt-test/79/61d0a4b2e598b162f6f846a055ba03/.command.run to - An error occurred (403) when calling the HeadObject operation: Forbidden
20:34:43 upload failed: ./.command.log to s3://samt-test/79/61d0a4b2e598b162f6f846a055ba03/.command.log An error occurred (AccessDenied) when calling the PutObject operation: Access Denied
I set aws access /secret key in nextflow.config file but also tried sending as an env variable to the docker environment with runOptions command (also failed)
Nextflow is executed on my machine with aws cli installed (can ls bucket from cmd line)
any help appreciated!