AWS ECR Pull Role and Profile

I think this is slightly related to Different AWS Keys per environment.

I’m not seeing a way to set the assumed role or source profile values in my config.yml file. Is that something that’s supported?

I’m trying to run tasks against an ECR image using a config.yml which looks something like this:

version: 2
jobs:
build:
docker:
- image: account-hidden.dkr.ecr.us-east-1.amazonaws.com/tag-hidden:version-hidden
aws_auth:
aws_access_key_id: $AWS_ACCESS_KEY_ID
aws_secret_access_key: $AWS_SECRET_ACCESS_KEY
steps:
- run: echo “foo”