I am trying to run a job in my cluster with a private ECR image in my container runner.
I get an error while running the job saying I am not authenticated with AWS: CircleCI failed to run this build, check your config. Try re-running the build and if this issue persists, open a Support ticket. Detail: could not make new task: error authenticating with ecr: aws credentials not found
My config:
version: 2.1
orbs:
aws-cli: circleci/aws-cli@3.1.3
jobs:
build:
docker:
- image: xxxxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com/path-to-ecr-repo/python:3.6
aws_auth:
oidc_role_arn: “arn:aws:iam::xxxxxx:role/circleci”
resource_class: org_name/resourceclass_name
steps:
- checkout
- run: echo “Hi I’m on Runners!”
workflows:
build-workflow:
jobs:
- build