I’m using DVC on AWS Batch, and have configured the job definition with a role with correct S3 policies (I know its correct because it worked on github actions). But, when running the job with dvc pull I got this error:
dvc pull -R /app/data/training
ERROR: unexpected error - Forbidden: An error occurred (403) when calling the HeadObject operation: Forbidden
The same job, if runned with the envs AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY configured, runs ok.