AWS_PROFILE not picked up?

Create issue
Issue #29 new
Daniel Svensson created an issue

Trying to push, but even if I set AWS_PROFILE=dev, or -PawsProfile=dev or -Paws.profile=dev awsecr still doesn't seem to pick up the correct settings.

Could not push image: denied: User: arn:aws:iam::123:user/me is not authorized to perform: ecr:InitiateLayerUpload on resource: arn:aws:ecr:eu-west-1:456:repository/my/repo

(note 123 vs 456 … but I only interact with 456 in one invocation)

My config contains:

[profile dev]
role_arn = arn:aws:iam::456:role/OrganizationAccountAccessRole
source_profile = default
region = eu-west-1

Is this what “Only one AWS account is supported at this time” means?

Comments (3)

  1. Log in to comment